Package org.apache.http.client.entity
Class LazyDecompressingInputStream
java.lang.Object
java.io.InputStream
org.apache.http.client.entity.LazyDecompressingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Lazy init InputStream wrapper.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InputStreamFactory
private final InputStream
private InputStream
-
Constructor Summary
ConstructorsConstructorDescriptionLazyDecompressingInputStream
(InputStream wrappedStream, InputStreamFactory inputStreamFactory) -
Method Summary
Methods inherited from class java.io.InputStream
mark, reset
-
Field Details
-
wrappedStream
-
inputStreamFactory
-
wrapperStream
-
-
Constructor Details
-
LazyDecompressingInputStream
public LazyDecompressingInputStream(InputStream wrappedStream, InputStreamFactory inputStreamFactory)
-
-
Method Details
-
initWrapper
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-