public abstract class ImageInputStreamImpl2
extends javax.imageio.stream.ImageInputStreamImpl
ImageInputStreamImpl2 fixes bugs in ImageInputStreamImpl.
ImageInputStreamImpl uses read(byte[]) instead of readFully(byte[]) inside of readShort. This results in corrupt data input if the underlying stream can not fulfill the read operation in a single step.
| Constructor and Description |
|---|
ImageInputStreamImpl2() |
| Modifier and Type | Method and Description |
|---|---|
int |
readInt() |
short |
readShort() |
checkClosed, close, finalize, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, length, mark, read, read, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readLine, readLong, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, seek, setBitOffset, setByteOrder, skipBytes, skipBytespublic 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.IOException