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 InputStreamFactoryprivate final InputStreamprivate 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:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-