public class BoundedInputStream
extends java.io.FilterInputStream
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected long |
maxLen |
protected long |
used |
| Constructor and Description |
|---|
BoundedInputStream(java.io.InputStream is) |
BoundedInputStream(java.io.InputStream is,
long len) |
| 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) |
public BoundedInputStream(java.io.InputStream is)
public BoundedInputStream(java.io.InputStream is,
long len)
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] buf)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] buf,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long len)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterInputStreamjava.io.IOExceptionCopyright © 2005, 2011 IBM Corporation. All Rights Reserved.