public class ThresholdingInputStream extends org.apache.commons.io.input.CountingInputStream
in| Constructor and Description |
|---|
ThresholdingInputStream(InputStream in,
int maximum)
Create a new ThresholdingInputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
afterRead, getByteCount, getCount, resetByteCount, resetCount, skippublic ThresholdingInputStream(InputStream in, int maximum)
in - the filtered streammaximum - lengthpublic int read() throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic int read(byte[] b, int off, int len) throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic int read(byte[] b) throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.commons.io.input.ProxyInputStreamIOExceptionCopyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.