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 InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOException