Package org.h2.compress
Class LZFInputStream
java.lang.Object
java.io.InputStream
org.h2.compress.LZFInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An input stream to read from an LZF stream.
The data is automatically expanded.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
private int
private CompressLZF
private final InputStream
private byte[]
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private static byte[]
ensureSize
(byte[] buff, int len) private void
int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) private int
readBlock
(byte[] b, int off, int len) private void
readFully
(byte[] buff, int len) private int
readInt()
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
in
-
decompress
-
pos
private int pos -
bufferLength
private int bufferLength -
inBuffer
private byte[] inBuffer -
buffer
private byte[] buffer
-
-
Constructor Details
-
LZFInputStream
- Throws:
IOException
-
-
Method Details
-
ensureSize
private static byte[] ensureSize(byte[] buff, int len) -
fillBuffer
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readInt
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
readBlock
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-