Liking cljdoc? Tell your friends :D

javax.imageio.stream.MemoryCacheImageOutputStream

An implementation of ImageOutputStream that writes its output to a regular OutputStream. A memory buffer is used to cache at least the data between the discard position and the current write position. The only constructor takes an OutputStream, so this class may not be used for read/modify/write operations. Reading can occur only on parts of the stream that have already been written to the cache and not yet flushed.

An implementation of ImageOutputStream that writes its
output to a regular OutputStream.  A memory buffer is
used to cache at least the data between the discard position and
the current write position.  The only constructor takes an
OutputStream, so this class may not be used for
read/modify/write operations.  Reading can occur only on parts of
the stream that have already been written to the cache and not
yet flushed.
raw docstring

->memory-cache-image-output-streamclj

(->memory-cache-image-output-stream stream)

Constructor.

Constructs a MemoryCacheImageOutputStream that will write to a given OutputStream.

stream - an OutputStream to write to. - java.io.OutputStream

throws: java.lang.IllegalArgumentException - if stream is null.

Constructor.

Constructs a MemoryCacheImageOutputStream that will write
 to a given OutputStream.

stream - an OutputStream to write to. - `java.io.OutputStream`

throws: java.lang.IllegalArgumentException - if stream is null.
raw docstring

cached-file?clj

(cached-file? this)

Returns false since this ImageOutputStream does not maintain a file cache.

returns: false. - boolean

Returns false since this
 ImageOutputStream does not maintain a file cache.

returns: false. - `boolean`
raw docstring

cached-memory?clj

(cached-memory? this)

Returns true since this ImageOutputStream maintains a main memory cache.

returns: true. - boolean

Returns true since this
 ImageOutputStream maintains a main memory cache.

returns: true. - `boolean`
raw docstring

cached?clj

(cached? this)

Returns true since this ImageOutputStream caches data in order to allow seeking backwards.

returns: true. - boolean

Returns true since this
 ImageOutputStream caches data in order to allow
 seeking backwards.

returns: true. - `boolean`
raw docstring

closeclj

(close this)

Closes this MemoryCacheImageOutputStream. All pending data is flushed to the output, and the cache is released. The destination OutputStream is not closed.

throws: java.io.IOException - if an I/O error occurs.

Closes this MemoryCacheImageOutputStream.  All
 pending data is flushed to the output, and the cache
 is released.  The destination OutputStream
 is not closed.

throws: java.io.IOException - if an I/O error occurs.
raw docstring

flush-beforeclj

(flush-before this pos)

Description copied from interface: ImageInputStream

pos - a long containing the length of the stream prefix that may be flushed. - long

throws: java.io.IOException - if an I/O error occurs.

Description copied from interface: ImageInputStream

pos - a long containing the length of the stream prefix that may be flushed. - `long`

throws: java.io.IOException - if an I/O error occurs.
raw docstring

lengthclj

(length this)

Description copied from class: ImageInputStreamImpl

returns: -1L to indicate unknown length. - long

Description copied from class: ImageInputStreamImpl

returns: -1L to indicate unknown length. - `long`
raw docstring

readclj

(read this)
(read this b off len)

Description copied from class: ImageInputStreamImpl

b - an array of bytes to be written to. - byte[] off - the starting position within b to write to. - int len - the maximum number of bytes to read. - int

returns: the number of bytes actually read, or -1 to indicate EOF. - int

throws: java.io.IOException - if an I/O error occurs.

Description copied from class: ImageInputStreamImpl

b - an array of bytes to be written to. - `byte[]`
off - the starting position within b to write to. - `int`
len - the maximum number of bytes to read. - `int`

returns: the number of bytes actually read, or -1
 to indicate EOF. - `int`

throws: java.io.IOException - if an I/O error occurs.
raw docstring

writeclj

(write this b)
(write this b off len)

Description copied from interface: ImageOutputStream

b - an array of bytes to be written. - byte[] off - the start offset in the data. - int len - the number of bytes to write. - int

throws: java.io.IOException - if an I/O error occurs.

Description copied from interface: ImageOutputStream

b - an array of bytes to be written. - `byte[]`
off - the start offset in the data. - `int`
len - the number of bytes to write. - `int`

throws: java.io.IOException - if an I/O error occurs.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close