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, skipBytes
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, skipBytes
public BufferedImageInputStream(ImageInputStream pStream) throws IOException
IOException
public int read() throws IOException
read
in interface ImageInputStream
read
in class ImageInputStreamImpl
IOException
public int read(byte[] pBuffer, int pOffset, int pLength) throws IOException
read
in interface ImageInputStream
read
in class ImageInputStreamImpl
IOException
public void seek(long pPosition) throws IOException
seek
in interface ImageInputStream
seek
in class ImageInputStreamImpl
IOException
public void flushBefore(long pos) throws IOException
flushBefore
in interface ImageInputStream
flushBefore
in class ImageInputStreamImpl
IOException
public long getFlushedPosition()
getFlushedPosition
in interface ImageInputStream
getFlushedPosition
in class ImageInputStreamImpl
public boolean isCached()
isCached
in interface ImageInputStream
isCached
in class ImageInputStreamImpl
public boolean isCachedMemory()
isCachedMemory
in interface ImageInputStream
isCachedMemory
in class ImageInputStreamImpl
public boolean isCachedFile()
isCachedFile
in interface ImageInputStream
isCachedFile
in class ImageInputStreamImpl
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ImageInputStream
close
in class ImageInputStreamImpl
IOException
protected void finalize() throws Throwable
finalize
in class ImageInputStreamImpl
Throwable
public long length()
length
in interface ImageInputStream
length
in class ImageInputStreamImpl
Copyright © 2017. All rights reserved.