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:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classFilterInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
-