org.monte.media.io
Class ImageInputStreamImpl2
java.lang.Object
javax.imageio.stream.ImageInputStreamImpl
org.monte.media.io.ImageInputStreamImpl2
- All Implemented Interfaces:
- DataInput, ImageInputStream
- Direct Known Subclasses:
- ByteArrayImageInputStream
public abstract class ImageInputStreamImpl2
- extends 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.
- Version:
- $Id: ImageInputStreamImpl2.java 134 2011-12-02 16:23:00Z werner $
- Author:
- Werner Randelshofer
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl |
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, skipBytes |
ImageInputStreamImpl2
public ImageInputStreamImpl2()
readShort
public short readShort()
throws IOException
- Specified by:
readShort
in interface DataInput
- Specified by:
readShort
in interface ImageInputStream
- Overrides:
readShort
in class ImageInputStreamImpl
- Throws:
IOException
readInt
public int readInt()
throws IOException
- Specified by:
readInt
in interface DataInput
- Specified by:
readInt
in interface ImageInputStream
- Overrides:
readInt
in class ImageInputStreamImpl
- Throws:
IOException
Copyright © 2016 Silverpeas. All Rights Reserved.