Class EmptyInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.sshd.common.util.io.input.EmptyInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
CloseableEmptyInputStream
public class EmptyInputStream extends InputStream
A/dev/nullimplementation - always open- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyInputStreamDEV_NULL
-
Constructor Summary
Constructors Constructor Description EmptyInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidmark(int readlimit)intread()intread(byte[] b, int off, int len)voidreset()longskip(long n)-
Methods inherited from class java.io.InputStream
close, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Field Detail
-
DEV_NULL
public static final EmptyInputStream DEV_NULL
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit)
- Overrides:
markin classInputStream
-
reset
public void reset() throws IOException- Overrides:
resetin classInputStream- Throws:
IOException
-
-