An implementation of ImageOutputStream that writes its output directly to a File or RandomAccessFile.
An implementation of ImageOutputStream that writes its output directly to a File or RandomAccessFile.
(->file-image-output-stream f)Constructor.
Constructs a FileImageOutputStream that will write to a given File.
f - a File to write to. - java.io.File
throws: java.lang.IllegalArgumentException - if f is null.
Constructor. Constructs a FileImageOutputStream that will write to a given File. f - a File to write to. - `java.io.File` throws: java.lang.IllegalArgumentException - if f is null.
(close this)Description copied from interface: ImageInputStream
throws: java.io.IOException - if an I/O error occurs.
Description copied from interface: ImageInputStream throws: java.io.IOException - if an I/O error occurs.
(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`
(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.
(seek this pos)Sets the current stream position and resets the bit offset to 0. It is legal to seeking past the end of the file; an EOFException will be thrown only if a read is performed. The file length will not be increased until a write is performed.
pos - a long containing the desired file pointer position. - long
throws: java.lang.IndexOutOfBoundsException - if pos is smaller than the flushed position.
Sets the current stream position and resets the bit offset to 0. It is legal to seeking past the end of the file; an EOFException will be thrown only if a read is performed. The file length will not be increased until a write is performed. pos - a long containing the desired file pointer position. - `long` throws: java.lang.IndexOutOfBoundsException - if pos is smaller than the flushed position.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |