class UnshrinkingInputStream extends LZWInputStream
Modifier and Type | Field and Description |
---|---|
private boolean[] |
isUsed |
private static int |
MAX_CODE_SIZE |
private static int |
MAX_TABLE_SIZE |
DEFAULT_CODE_SIZE, in, UNUSED_PREFIX
Constructor and Description |
---|
UnshrinkingInputStream(java.io.InputStream inputStream)
IOException is not actually thrown!
|
Modifier and Type | Method and Description |
---|---|
protected int |
addEntry(int previousCode,
byte character)
Add a new entry to the dictionary.
|
protected int |
decompressNextSymbol()
Read the next code and expand it.
|
private void |
partialClear() |
addEntry, addRepeatOfPreviousCode, close, expandCodeToOutputStack, getClearCode, getCodeSize, getCompressedCount, getPrefix, getPrefixesLength, getTableSize, incrementCodeSize, initializeTables, initializeTables, read, read, readNextCode, resetCodeSize, resetPreviousCode, setClearCode, setCodeSize, setPrefix, setTableSize
count, count, getBytesRead, getCount, getUncompressedCount, pushedBackBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUncompressedCount
private static final int MAX_CODE_SIZE
private static final int MAX_TABLE_SIZE
private final boolean[] isUsed
public UnshrinkingInputStream(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- java.io.IOException
- IOException is not actually thrown!protected int addEntry(int previousCode, byte character) throws java.io.IOException
LZWInputStream
addEntry
in class LZWInputStream
previousCode
- the previous codecharacter
- the next character to appendjava.io.IOException
- on errorprivate void partialClear()
protected int decompressNextSymbol() throws java.io.IOException
LZWInputStream
decompressNextSymbol
in class LZWInputStream
java.io.IOException
- on error