public class BoundedInputStream extends FilterInputStream
in| Constructor and Description |
|---|
BoundedInputStream(InputStream pStream)
Ctor.
|
BoundedInputStream(InputStream pStream,
long pMaximumLength)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] buf) |
int |
read(byte[] buf,
int off,
int len) |
long |
skip(long len) |
mark, markSupported, resetpublic BoundedInputStream(InputStream pStream)
pStream - The stream this one is build uponpublic BoundedInputStream(InputStream pStream, long pMaximumLength)
pStream - The stream this one is build uponpMaximumLength - The maximum number of bytes that can be read from this stream.
A value of -1 represents unlimited mode.public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] buf)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long len)
throws IOException
skip in class FilterInputStreamIOExceptionpublic int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionCopyright © 2005, 2012 IBM Corporation. All Rights Reserved.