Class ImageInputStreamImpl2

  • All Implemented Interfaces:
    Closeable, DataInput, AutoCloseable, 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 348 2015-09-23 17:46:43Z werner $
    Author:
    Werner Randelshofer