Closeable, DataInput, AutoCloseable, ImageInputStreampublic final class BufferedImageInputStream extends ImageInputStreamImpl implements ImageInputStream
ImageInputStream.
Experimental - seems to be effective for FileImageInputStream
and FileCacheImageInputStream when doing a lot of single-byte reads
(or short byte-array reads) on OS X at least.
Code that uses the readFully methods are not affected by the issue.bitOffset, byteOrder, flushedPos, streamPos| Constructor | Description |
|---|---|
BufferedImageInputStream(ImageInputStream pStream) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
protected void |
finalize() |
|
void |
flushBefore(long pos) |
|
long |
getFlushedPosition() |
|
boolean |
isCached() |
|
boolean |
isCachedFile() |
|
boolean |
isCachedMemory() |
|
long |
length() |
|
int |
read() |
|
int |
read(byte[] pBuffer,
int pOffset,
int pLength) |
|
int |
readBit() |
|
long |
readBits(int numBits) |
|
int |
readInt() |
|
long |
readLong() |
|
short |
readShort() |
|
void |
seek(long pPosition) |
|
void |
setByteOrder(ByteOrder byteOrder) |
flush, getBitOffset, getByteOrder, getStreamPosition, mark, read, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readLine, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, setBitOffset, skipBytes, skipBytescheckClosed, flush, getBitOffset, getByteOrder, getStreamPosition, mark, read, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readLine, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, setBitOffset, skipBytes, skipBytespublic BufferedImageInputStream(ImageInputStream pStream) throws IOException
IOExceptionpublic 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[] pBuffer,
int pOffset,
int pLength)
throws IOException
read in interface ImageInputStreamread 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 int readBit()
throws IOException
readBit in interface ImageInputStreamreadBit in class ImageInputStreamImplIOExceptionpublic long readBits(int numBits)
throws IOException
readBits in interface ImageInputStreamreadBits in class ImageInputStreamImplIOExceptionpublic void seek(long pPosition)
throws IOException
seek in interface ImageInputStreamseek in class ImageInputStreamImplIOExceptionpublic void flushBefore(long pos)
throws IOException
flushBefore in interface ImageInputStreamflushBefore in class ImageInputStreamImplIOExceptionpublic long getFlushedPosition()
getFlushedPosition in interface ImageInputStreamgetFlushedPosition in class ImageInputStreamImplpublic boolean isCached()
isCached in interface ImageInputStreamisCached in class ImageInputStreamImplpublic boolean isCachedMemory()
isCachedMemory in interface ImageInputStreamisCachedMemory in class ImageInputStreamImplpublic boolean isCachedFile()
isCachedFile in interface ImageInputStreamisCachedFile in class ImageInputStreamImplpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in interface ImageInputStreamclose in class ImageInputStreamImplIOExceptionprotected void finalize()
throws Throwable
finalize in class ImageInputStreamImplThrowablepublic long length()
length in interface ImageInputStreamlength in class ImageInputStreamImplCopyright © 2018. All rights reserved.