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[]
buff
private java.util.zip.Inflater
inflater
private int
len
private 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 void
close()
void
endOfEntryReached(java.io.InputStream inputStream, int numberOfBytesPushedBack)
private void
fill()
int
pushBackInputStreamIfNecessary(java.io.PushbackInputStream pushbackInputStream)
int
read()
int
read(byte[] b)
int
read(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:
read
in classDecompressedInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException
- Overrides:
read
in classDecompressedInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in classDecompressedInputStream
- Throws:
java.io.IOException
-
endOfEntryReached
public void endOfEntryReached(java.io.InputStream inputStream, int numberOfBytesPushedBack) throws java.io.IOException
- Overrides:
endOfEntryReached
in classDecompressedInputStream
- Throws:
java.io.IOException
-
pushBackInputStreamIfNecessary
public int pushBackInputStreamIfNecessary(java.io.PushbackInputStream pushbackInputStream) throws java.io.IOException
- Overrides:
pushBackInputStreamIfNecessary
in classDecompressedInputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classDecompressedInputStream
- Throws:
java.io.IOException
-
fill
private void fill() throws java.io.IOException
- Throws:
java.io.IOException
-
-