An implementation of ImageInputStream that gets its input from a File or RandomAccessFile. The file contents are assumed to be stable during the lifetime of the object.
An implementation of ImageInputStream that gets its input from a File or RandomAccessFile. The file contents are assumed to be stable during the lifetime of the object.
(->file-image-input-stream f)
Constructor.
Constructs a FileImageInputStream that will read from a given File.
The file contents must not change between the time this object is constructed and the time of the last call to a read method.
f - a File to read from. - java.io.File
throws: java.lang.IllegalArgumentException - if f is null.
Constructor. Constructs a FileImageInputStream that will read from a given File. The file contents must not change between the time this object is constructed and the time of the last call to a read method. f - a File to read from. - `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)
Returns the length of the underlying file, or -1 if it is unknown.
returns: the file length as a long, or
-1. - long
Returns the length of the underlying file, or -1 if it is unknown. returns: the file length as a long, or -1. - `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)
Description copied from interface: ImageInputStream
pos - a long containing the desired file pointer position. - long
throws: java.io.IOException - if any other I/O error occurs.
Description copied from interface: ImageInputStream pos - a long containing the desired file pointer position. - `long` throws: java.io.IOException - if any other I/O error occurs.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close