Class LimitInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.sshd.common.util.io.input.LimitInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel
Reads from another
InputStream up to specified max. length-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
mark, markSupported, read, reset
-
Field Details
-
open
-
remaining
private long remaining
-
-
Constructor Details
-
LimitInputStream
-
-
Method Details
-
isOpen
public boolean isOpen() -
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
available
- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-