public class BlockLZ4CompressorInputStream extends AbstractLZ77CompressorInputStream
Modifier and Type | Class and Description |
---|---|
private static class |
BlockLZ4CompressorInputStream.State |
Modifier and Type | Field and Description |
---|---|
(package private) static int |
BACK_REFERENCE_SIZE_MASK |
(package private) static int |
LITERAL_SIZE_MASK |
private int |
nextBackReferenceSize
Back-Reference-size part of the block starting byte.
|
(package private) static int |
SIZE_BITS |
private BlockLZ4CompressorInputStream.State |
state
Current state of the stream
|
(package private) static int |
WINDOW_SIZE |
supplier
Constructor and Description |
---|
BlockLZ4CompressorInputStream(java.io.InputStream is)
Creates a new LZ4 input stream.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
initializeBackReference() |
int |
read(byte[] b,
int off,
int len) |
private long |
readSizeBytes() |
private void |
readSizes() |
available, close, getCompressedCount, getSize, hasMoreDataInBlock, prefill, read, readBackReference, readLiteral, readOneByte, startBackReference, startLiteral
count, count, getBytesRead, getCount, getUncompressedCount, pushedBackBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUncompressedCount
static final int WINDOW_SIZE
static final int SIZE_BITS
static final int BACK_REFERENCE_SIZE_MASK
static final int LITERAL_SIZE_MASK
private int nextBackReferenceSize
private BlockLZ4CompressorInputStream.State state
public BlockLZ4CompressorInputStream(java.io.InputStream is) throws java.io.IOException
is
- An InputStream to read compressed data fromjava.io.IOException
- if reading failspublic int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
private void readSizes() throws java.io.IOException
java.io.IOException
private long readSizeBytes() throws java.io.IOException
java.io.IOException
private boolean initializeBackReference() throws java.io.IOException
java.io.IOException