java.lang.Object
javax.imageio.stream.ImageInputStreamImpl
javax.imageio.stream.FileImageInputStream
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
,ImageInputStream
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.-
Field Summary
Fields declared in class javax.imageio.stream.ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aFileImageInputStream
that will read from a givenFile
.Constructs aFileImageInputStream
that will read from a givenRandomAccessFile
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finalize()
Deprecated.long
length()
Returns the length of the underlying file, or-1
if it is unknown.int
read()
Reads a single byte from the stream and returns it as anint
between 0 and 255.int
read(byte[] b, int off, int len)
Reads up tolen
bytes from the stream, and stores them intob
starting at indexoff
.Methods declared in class javax.imageio.stream.ImageInputStreamImpl
checkClosed, close, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, mark, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, seek, setBitOffset, setByteOrder, skipBytes, skipBytes
finalize
method has been deprecated.