Package org.apache.http.impl.io
Class EmptyInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.http.impl.io.EmptyInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public final class EmptyInputStream extends java.io.InputStream- Since:
- 4.4
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyInputStreamINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()voidmark(int readLimit)booleanmarkSupported()intread()intread(byte[] buf)intread(byte[] buf, int off, int len)voidreset()longskip(long n)
-
-
-
Field Detail
-
INSTANCE
public static final EmptyInputStream INSTANCE
-
-
Method Detail
-
available
public int available()
- Overrides:
availablein classjava.io.InputStream
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream
-
mark
public void mark(int readLimit)
- Overrides:
markin classjava.io.InputStream
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classjava.io.InputStream
-
read
public int read()
- Specified by:
readin classjava.io.InputStream
-
read
public int read(byte[] buf)
- Overrides:
readin classjava.io.InputStream
-
read
public int read(byte[] buf, int off, int len)- Overrides:
readin classjava.io.InputStream
-
reset
public void reset()
- Overrides:
resetin classjava.io.InputStream
-
skip
public long skip(long n)
- Overrides:
skipin classjava.io.InputStream
-
-