Class ShortReadInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class ShortReadInputStream
    extends InputStream
    Only reads the first bytesToRead bytes from the underlying input stream. After that it returns on every read END_OF_STREAM if throwException is false, or an IOException otherwise.