Class CloseableEmptyInputStream
java.lang.Object
java.io.InputStream
org.apache.sshd.common.util.io.input.EmptyInputStream
org.apache.sshd.common.util.io.input.CloseableEmptyInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel
A
/dev/null stream that can be closed - in which case it will throw IOExceptions if invoked after
being closed-
Field Summary
FieldsFields inherited from class org.apache.sshd.common.util.io.input.EmptyInputStream
DEV_NULL -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.sshd.common.util.io.input.EmptyInputStream
markMethods inherited from class java.io.InputStream
markSupported, read
-
Field Details
-
open
-
-
Constructor Details
-
CloseableEmptyInputStream
public CloseableEmptyInputStream()
-
-
Method Details
-
isOpen
public boolean isOpen() -
available
- Overrides:
availablein classEmptyInputStream- Throws:
IOException
-
read
- Overrides:
readin classEmptyInputStream- Throws:
IOException
-
read
- Overrides:
readin classEmptyInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classEmptyInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classEmptyInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-