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
public class CloseableEmptyInputStream extends EmptyInputStream implements Channel
A/dev/nullstream that can be closed - in which case it will throwIOExceptions if invoked after being closed- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.io.input.EmptyInputStream
DEV_NULL
-
-
Constructor Summary
Constructors Constructor Description CloseableEmptyInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()booleanisOpen()intread()intread(byte[] b, int off, int len)voidreset()longskip(long n)-
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
-
-
-
-
Method Detail
-
available
public int available() throws IOException- Overrides:
availablein classEmptyInputStream- Throws:
IOException
-
read
public int read() throws IOException- Overrides:
readin classEmptyInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classEmptyInputStream- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classEmptyInputStream- Throws:
IOException
-
reset
public void reset() throws IOException- Overrides:
resetin classEmptyInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
-