public final class BufferedImageInputStream
extends javax.imageio.stream.ImageInputStreamImpl
implements javax.imageio.stream.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.| Constructor and Description |
|---|
BufferedImageInputStream(javax.imageio.stream.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) |
int |
readBit() |
long |
readBits(int numBits) |
int |
readInt() |
long |
readLong() |
short |
readShort() |
void |
seek(long pPosition) |
void |
setByteOrder(java.nio.ByteOrder byteOrder) |
checkClosed, 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, skipBytesclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, 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(javax.imageio.stream.ImageInputStream pStream)
throws java.io.IOException
java.io.IOExceptionpublic void setByteOrder(java.nio.ByteOrder byteOrder)
setByteOrder in interface javax.imageio.stream.ImageInputStreamsetByteOrder in class javax.imageio.stream.ImageInputStreamImplpublic int read()
throws java.io.IOException
read in interface javax.imageio.stream.ImageInputStreamread in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic int read(byte[] pBuffer,
int pOffset,
int pLength)
throws java.io.IOException
read in interface javax.imageio.stream.ImageInputStreamread in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic short readShort()
throws java.io.IOException
readShort in interface java.io.DataInputreadShort in interface javax.imageio.stream.ImageInputStreamreadShort in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic int readInt()
throws java.io.IOException
readInt in interface java.io.DataInputreadInt in interface javax.imageio.stream.ImageInputStreamreadInt in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic long readLong()
throws java.io.IOException
readLong in interface java.io.DataInputreadLong in interface javax.imageio.stream.ImageInputStreamreadLong in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic int readBit()
throws java.io.IOException
readBit in interface javax.imageio.stream.ImageInputStreamreadBit in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic long readBits(int numBits)
throws java.io.IOException
readBits in interface javax.imageio.stream.ImageInputStreamreadBits in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic void seek(long pPosition)
throws java.io.IOException
seek in interface javax.imageio.stream.ImageInputStreamseek in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic void flushBefore(long pos)
throws java.io.IOException
flushBefore in interface javax.imageio.stream.ImageInputStreamflushBefore in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic long getFlushedPosition()
getFlushedPosition in interface javax.imageio.stream.ImageInputStreamgetFlushedPosition in class javax.imageio.stream.ImageInputStreamImplpublic boolean isCached()
isCached in interface javax.imageio.stream.ImageInputStreamisCached in class javax.imageio.stream.ImageInputStreamImplpublic boolean isCachedMemory()
isCachedMemory in interface javax.imageio.stream.ImageInputStreamisCachedMemory in class javax.imageio.stream.ImageInputStreamImplpublic boolean isCachedFile()
isCachedFile in interface javax.imageio.stream.ImageInputStreamisCachedFile in class javax.imageio.stream.ImageInputStreamImplpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface javax.imageio.stream.ImageInputStreamclose in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionprotected void finalize()
throws java.lang.Throwable
finalize in class javax.imageio.stream.ImageInputStreamImpljava.lang.Throwablepublic long length()
length in interface javax.imageio.stream.ImageInputStreamlength in class javax.imageio.stream.ImageInputStreamImplCopyright © 2020. All Rights Reserved.