public 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 and Description |
|---|
BufferedImageInputStream(ImageInputStream pStream) |
| Modifier and Type | Method and 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) |
void |
seek(long pPosition) |
checkClosed, flush, getBitOffset, getByteOrder, getStreamPosition, 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, setBitOffset, setByteOrder, skipBytes, skipBytesclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, getBitOffset, getByteOrder, getStreamPosition, 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, setBitOffset, setByteOrder, skipBytes, skipBytespublic BufferedImageInputStream(ImageInputStream pStream) throws IOException
IOExceptionpublic 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 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 Closeableclose in interface AutoCloseableclose in interface ImageInputStreamclose in class ImageInputStreamImplIOExceptionprotected void finalize()
throws Throwable
finalize in class ImageInputStreamImplThrowablepublic long length()
length in interface ImageInputStreamlength in class ImageInputStreamImplCopyright © 2014. All Rights Reserved.