Package net.lingala.zip4j.io.inputstream
Class InflaterInputStream
- java.lang.Object
-
- java.io.InputStream
-
- net.lingala.zip4j.io.inputstream.DecompressedInputStream
-
- net.lingala.zip4j.io.inputstream.InflaterInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class InflaterInputStream extends DecompressedInputStream
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]buffprivate java.util.zip.Inflaterinflaterprivate intlenprivate byte[]singleByteBuffer-
Fields inherited from class net.lingala.zip4j.io.inputstream.DecompressedInputStream
oneByteBuffer
-
-
Constructor Summary
Constructors Constructor Description InflaterInputStream(CipherInputStream<?> cipherInputStream, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidendOfEntryReached(java.io.InputStream inputStream, int numberOfBytesPushedBack)private voidfill()intpushBackInputStreamIfNecessary(java.io.PushbackInputStream pushbackInputStream)intread()intread(byte[] b)intread(byte[] b, int off, int len)-
Methods inherited from class net.lingala.zip4j.io.inputstream.DecompressedInputStream
getLastReadRawDataCache
-
-
-
-
Constructor Detail
-
InflaterInputStream
public InflaterInputStream(CipherInputStream<?> cipherInputStream, int bufferSize)
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Overrides:
readin classDecompressedInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException- Overrides:
readin classDecompressedInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classDecompressedInputStream- Throws:
java.io.IOException
-
endOfEntryReached
public void endOfEntryReached(java.io.InputStream inputStream, int numberOfBytesPushedBack) throws java.io.IOException- Overrides:
endOfEntryReachedin classDecompressedInputStream- Throws:
java.io.IOException
-
pushBackInputStreamIfNecessary
public int pushBackInputStreamIfNecessary(java.io.PushbackInputStream pushbackInputStream) throws java.io.IOException- Overrides:
pushBackInputStreamIfNecessaryin classDecompressedInputStream- 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 classDecompressedInputStream- Throws:
java.io.IOException
-
fill
private void fill() throws java.io.IOException- Throws:
java.io.IOException
-
-