Class ZipArchiveInputStream.BoundCountInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.commons.io.input.ProxyInputStream
-
- org.apache.commons.io.input.BoundedInputStream
-
- org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.BoundCountInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- ZipArchiveInputStream
private final class ZipArchiveInputStream.BoundCountInputStream extends org.apache.commons.io.input.BoundedInputStreamInput stream adapted from commons-io.
-
-
Constructor Summary
Constructors Constructor Description BoundCountInputStream(java.io.InputStream in, long max)Creates a newBoundedInputStreamthat wraps the given input stream and limits it to a certain size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanatMaxLength()intread()intread(byte[] b, int off, int len)private intreadCount(int bytesRead)-
Methods inherited from class org.apache.commons.io.input.BoundedInputStream
afterRead, available, builder, close, getCount, getMaxCount, getMaxLength, getRemaining, isPropagateClose, mark, markSupported, onMaxLength, read, reset, setPropagateClose, skip, toString
-
Methods inherited from class org.apache.commons.io.input.ProxyInputStream
beforeRead, handleIOException, setReference, unwrap
-
-
-
-
Method Detail
-
atMaxLength
private boolean atMaxLength()
-
read
public int read() throws java.io.IOException- Overrides:
readin classorg.apache.commons.io.input.BoundedInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classorg.apache.commons.io.input.BoundedInputStream- Throws:
java.io.IOException
-
readCount
private int readCount(int bytesRead)
-
-