BufferedChannelImageInputStream instead.@Deprecated public final class BufferedFileImageInputStream extends ImageInputStreamImpl
FileImageInputStream
that provides greatly improved performance for shorter reads, like single
byte or bit reads.
As with javax.imageio.stream.FileImageInputStream, either
File or RandomAccessFile can be used as input.FileImageInputStreambitOffset, byteOrder, flushedPos, streamPos| Constructor and Description |
|---|
BufferedFileImageInputStream(File file)
Deprecated.
Constructs a
BufferedFileImageInputStream that will read from a given File. |
BufferedFileImageInputStream(RandomAccessFile raf)
Deprecated.
Constructs a
BufferedFileImageInputStream that will read from a given RandomAccessFile. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
long |
length()
Deprecated.
|
int |
read()
Deprecated.
|
int |
read(byte[] bytes,
int offset,
int length)
Deprecated.
|
int |
readInt()
Deprecated.
|
long |
readLong()
Deprecated.
|
short |
readShort()
Deprecated.
|
void |
seek(long position)
Deprecated.
|
void |
setByteOrder(ByteOrder byteOrder)
Deprecated.
|
checkClosed, finalize, 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, readLine, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, setBitOffset, skipBytes, skipBytespublic BufferedFileImageInputStream(File file) throws FileNotFoundException
BufferedFileImageInputStream that will read from a given File.file - a File to read from.IllegalArgumentException - if file is null.FileNotFoundException - if file is a directory or cannot be opened for reading
for any reason.public BufferedFileImageInputStream(RandomAccessFile raf)
BufferedFileImageInputStream that will read from a given RandomAccessFile.raf - a RandomAccessFile to read from.IllegalArgumentException - if raf is null.public void setByteOrder(ByteOrder byteOrder)
setByteOrder in interface ImageInputStreamsetByteOrder in class ImageInputStreamImplpublic int read()
throws IOException
read in interface ImageInputStreamread in class ImageInputStreamImplIOExceptionpublic int read(byte[] bytes,
int offset,
int length)
throws IOException
read in interface ImageInputStreamread in class ImageInputStreamImplIOExceptionpublic long length()
length in interface ImageInputStreamlength in class ImageInputStreamImplpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ImageInputStreamclose in class ImageInputStreamImplIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputreadShort in interface ImageInputStreamreadShort in class ImageInputStreamImplIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputreadInt in interface ImageInputStreamreadInt in class ImageInputStreamImplIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputreadLong in interface ImageInputStreamreadLong in class ImageInputStreamImplIOExceptionpublic void seek(long position)
throws IOException
seek in interface ImageInputStreamseek in class ImageInputStreamImplIOExceptionCopyright © 2024. All rights reserved.