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, setTableSizecount, count, getBytesRead, getCount, getUncompressedCount, pushedBackBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUncompressedCountprivate 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
LZWInputStreamaddEntry in class LZWInputStreampreviousCode - the previous codecharacter - the next character to appendjava.io.IOException - on errorprivate void partialClear()
protected int decompressNextSymbol()
throws java.io.IOException
LZWInputStreamdecompressNextSymbol in class LZWInputStreamjava.io.IOException - on error