Class BoundedInputStream
- 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.utils.BoundedInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
@Deprecated public class BoundedInputStream extends BoundedInputStream
Deprecated.UseBoundedInputStream
.A stream that limits reading from a wrapped stream to a given number of bytes.- Since:
- 1.6
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.io.input.BoundedInputStream
BoundedInputStream.Builder
-
-
Constructor Summary
Constructors Constructor Description BoundedInputStream(java.io.InputStream in, long size)
Deprecated.Creates the stream that will at most read the given amount of bytes from the given stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long
getBytesRemaining()
Deprecated.Gets how many bytes remain to read.-
Methods inherited from class org.apache.commons.io.input.BoundedInputStream
available, builder, close, getCount, getMaxCount, getMaxLength, getRemaining, isPropagateClose, mark, markSupported, read, read, read, reset, setPropagateClose, skip, toString
-
Methods inherited from class org.apache.commons.io.input.ProxyInputStream
unwrap
-
-