public class LimitedInputStream extends InputStream
Constructor and Description |
---|
LimitedInputStream(InputStream source) |
public LimitedInputStream(InputStream source)
public int getLimit()
public void setLimit(int length)
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] buffer, int offset, int length) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException