public final class BoundedInputStream
extends java.io.InputStream
Constructor and Description |
---|
BoundedInputStream(java.io.InputStream delegate,
long limit,
java.lang.String systemId) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int arg0) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] arg0) |
int |
read(byte[] arg0,
int arg1,
int arg2) |
void |
reset() |
long |
skip(long arg0) |
public BoundedInputStream(java.io.InputStream delegate, long limit, java.lang.String systemId)
delegate
- limit
- public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
InputStream.available()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
InputStream.close()
public void mark(int arg0)
mark
in class java.io.InputStream
InputStream.mark(int)
public boolean markSupported()
markSupported
in class java.io.InputStream
InputStream.markSupported()
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
InputStream.read()
public int read(byte[] arg0) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
InputStream.read(byte[])
public int read(byte[] arg0, int arg1, int arg2) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
InputStream.read(byte[], int, int)
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
InputStream.reset()
public long skip(long arg0) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
InputStream.skip(long)