BufferedFileImageInputStream instead.@Deprecated
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).
Code that uses the readFully methods are not affected by the issue.
NOTE: Invoking close() will NOT close the wrapped stream.
| Constructor and Description |
|---|
BufferedImageInputStream(javax.imageio.stream.ImageInputStream pStream)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
protected void |
finalize()
Deprecated.
|
void |
flushBefore(long pos)
Deprecated.
|
long |
getFlushedPosition()
Deprecated.
|
boolean |
isCached()
Deprecated.
|
boolean |
isCachedFile()
Deprecated.
|
boolean |
isCachedMemory()
Deprecated.
|
long |
length()
Deprecated.
|
int |
read()
Deprecated.
|
int |
read(byte[] pBuffer,
int pOffset,
int pLength)
Deprecated.
|
int |
readBit()
Deprecated.
|
long |
readBits(int numBits)
Deprecated.
|
int |
readInt()
Deprecated.
|
long |
readLong()
Deprecated.
|
short |
readShort()
Deprecated.
|
void |
seek(long position)
Deprecated.
|
void |
setByteOrder(java.nio.ByteOrder byteOrder)
Deprecated.
|
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 position)
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 © 2021. All Rights Reserved.