Package org.apache.hc.core5.http.impl.io
Class EmptyInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.hc.core5.http.impl.io.EmptyInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
@Deprecated public final class EmptyInputStream extends java.io.InputStream
Deprecated.Please useEmptyInputStream
- Since:
- 4.4
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyInputStream
INSTANCE
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description private
EmptyInputStream()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
available()
Deprecated.Returns0
.void
close()
Deprecated.Noop.void
mark(int readLimit)
Deprecated.Noop.boolean
markSupported()
Deprecated.Returnstrue
.int
read()
Deprecated.Returns-1
.int
read(byte[] buf)
Deprecated.Returns-1
.int
read(byte[] buf, int off, int len)
Deprecated.Returns-1
.void
reset()
Deprecated.Noop.long
skip(long n)
Deprecated.Returns0
.
-
-
-
Field Detail
-
INSTANCE
public static final EmptyInputStream INSTANCE
Deprecated.
-
-
Method Detail
-
available
public int available()
Deprecated.Returns0
.- Overrides:
available
in classjava.io.InputStream
-
close
public void close()
Deprecated.Noop.- 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)
Deprecated.Noop.- Overrides:
mark
in classjava.io.InputStream
-
markSupported
public boolean markSupported()
Deprecated.Returnstrue
.- Overrides:
markSupported
in classjava.io.InputStream
-
read
public int read()
Deprecated.Returns-1
.- Specified by:
read
in classjava.io.InputStream
-
read
public int read(byte[] buf)
Deprecated.Returns-1
.- Overrides:
read
in classjava.io.InputStream
-
read
public int read(byte[] buf, int off, int len)
Deprecated.Returns-1
.- Overrides:
read
in classjava.io.InputStream
-
reset
public void reset()
Deprecated.Noop.- Overrides:
reset
in classjava.io.InputStream
-
skip
public long skip(long n)
Deprecated.Returns0
.- Overrides:
skip
in classjava.io.InputStream
-
-