Package org.apache.hadoop.util
Class LimitInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.hadoop.util.LimitInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Copied from guava source code v15 (LimitedInputStream)
Guava deprecated LimitInputStream in v14 and removed it in v15. Copying this class here
allows to be compatible with guava 11 to 15+.
Originally: org.apache.hadoop.hbase.io.LimitInputStream
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
close, markSupported, readMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
LimitInputStream
-
-
Method Details
-
available
- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
mark
public void mark(int readLimit) - Overrides:
markin classFilterInputStream
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-