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 EmptyInputStream
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
void
mark(int readLimit)
boolean
markSupported()
int
read()
int
read(byte[] buf)
int
read(byte[] buf, int off, int len)
void
reset()
long
skip(long n)
-
-
-
Field Detail
-
INSTANCE
public static final EmptyInputStream INSTANCE
-
-
Method Detail
-
available
public int available()
- Overrides:
available
in classjava.io.InputStream
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
-
mark
public void mark(int readLimit)
- Overrides:
mark
in classjava.io.InputStream
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classjava.io.InputStream
-
read
public int read()
- Specified by:
read
in classjava.io.InputStream
-
read
public int read(byte[] buf)
- Overrides:
read
in classjava.io.InputStream
-
read
public int read(byte[] buf, int off, int len)
- Overrides:
read
in classjava.io.InputStream
-
reset
public void reset()
- Overrides:
reset
in classjava.io.InputStream
-
skip
public long skip(long n)
- Overrides:
skip
in classjava.io.InputStream
-
-