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:
Closeable
,AutoCloseable
-
Field Summary
FieldsFields inherited from class net.lingala.zip4j.io.inputstream.DecompressedInputStream
oneByteBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
endOfEntryReached
(InputStream inputStream, int numberOfBytesPushedBack) private void
fill()
int
pushBackInputStreamIfNecessary
(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
Methods inherited from class java.io.InputStream
available, mark, markSupported, reset, skip
-
Field Details
-
inflater
-
buff
private byte[] buff -
singleByteBuffer
private byte[] singleByteBuffer -
len
private int len
-
-
Constructor Details
-
InflaterInputStream
-
-
Method Details
-
read
- Overrides:
read
in classDecompressedInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classDecompressedInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classDecompressedInputStream
- Throws:
IOException
-
endOfEntryReached
public void endOfEntryReached(InputStream inputStream, int numberOfBytesPushedBack) throws IOException - Overrides:
endOfEntryReached
in classDecompressedInputStream
- Throws:
IOException
-
pushBackInputStreamIfNecessary
public int pushBackInputStreamIfNecessary(PushbackInputStream pushbackInputStream) throws IOException - Overrides:
pushBackInputStreamIfNecessary
in classDecompressedInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classDecompressedInputStream
- Throws:
IOException
-
fill
- Throws:
IOException
-