Class EmptyInputStream
java.lang.Object
java.io.InputStream
org.apache.hc.core5.http.io.entity.EmptyInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
- Since:
- 5.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EmptyInputStreamSingleton instance of EmptyInputStream. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
INSTANCE
Singleton instance of EmptyInputStream.
-
-
Constructor Details
-
EmptyInputStream
private EmptyInputStream()
-
-
Method Details
-
available
-
close
public void close()Noop.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
mark
-
markSupported
-
read
-
read
-
read
-
reset
-
skip
-