Class DecompressingEntity.LazyDecompressingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.hc.client5.http.entity.compress.DecompressingEntity.LazyDecompressingInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- DecompressingEntity
private static final class DecompressingEntity.LazyDecompressingInputStream extends java.io.FilterInputStream
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.hc.core5.io.IOFunction<java.io.InputStream,java.io.InputStream>decoderprivate java.io.InputStreamdecompressedStream
-
Constructor Summary
Constructors Modifier Constructor Description privateLazyDecompressingInputStream(java.io.InputStream inputStream, org.apache.hc.core5.io.IOFunction<java.io.InputStream,java.io.InputStream> decoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()private java.io.InputStreamgetDecompressedStream()intread()intread(byte[] b)intread(byte[] b, int off, int len)longskip(long n)
-
-
-
Method Detail
-
getDecompressedStream
private java.io.InputStream getDecompressedStream() throws java.io.IOException- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- Overrides:
skipin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Overrides:
availablein classjava.io.FilterInputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterInputStream- Throws:
java.io.IOException
-
-