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 IOException
s 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
mark
Methods inherited from class java.io.InputStream
markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, transferTo
-
Field Details
-
open
-
-
Constructor Details
-
CloseableEmptyInputStream
public CloseableEmptyInputStream()
-
-
Method Details
-
isOpen
public boolean isOpen() -
available
- Overrides:
available
in classEmptyInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classEmptyInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classEmptyInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classEmptyInputStream
- Throws:
IOException
-
reset
- Overrides:
reset
in classEmptyInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-