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, skip
public ThresholdingInputStream(InputStream in, int maximum)
in
- the filtered streammaximum
- lengthpublic int read() throws IOException
read
in class org.apache.commons.io.input.ProxyInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class org.apache.commons.io.input.ProxyInputStream
IOException
public int read(byte[] b) throws IOException
read
in class org.apache.commons.io.input.ProxyInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.commons.io.input.ProxyInputStream
IOException
Copyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.