Package io.protostuff
Class LimitedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
io.protostuff.LimitedInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An InputStream implementations which reads from some other InputStream but is limited to a particular number of
bytes.
-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
close, mark, markSupported, read, reset
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
limit
private int limit
-
-
Constructor Details
-
LimitedInputStream
-
LimitedInputStream
-
-
Method Details
-
limit
-
available
- Overrides:
available
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-