public class ZCompressorInputStream extends LZWInputStream
DEFAULT_CODE_SIZE, in, UNUSED_PREFIX| Constructor and Description |
|---|
ZCompressorInputStream(InputStream inputStream) |
ZCompressorInputStream(InputStream inputStream,
int memoryLimitInKb) |
| 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.
|
static boolean |
matches(byte[] signature,
int length)
Checks if the signature matches what is expected for a Unix compress file.
|
protected int |
readNextCode()
Reads the next code from the stream.
|
addEntry, addRepeatOfPreviousCode, close, expandCodeToOutputStack, getClearCode, getCodeSize, getCompressedCount, getPrefix, getPrefixesLength, getTableSize, incrementCodeSize, initializeTables, initializeTables, read, read, resetCodeSize, resetPreviousCode, setClearCode, setCodeSize, setPrefix, setTableSizecount, count, getBytesRead, getCount, getUncompressedCount, pushedBackBytesavailable, mark, markSupported, read, reset, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUncompressedCountpublic ZCompressorInputStream(InputStream inputStream, int memoryLimitInKb) throws IOException
IOExceptionpublic ZCompressorInputStream(InputStream inputStream) throws IOException
IOExceptionprotected int readNextCode() throws IOException
This method is only protected for technical reasons and is not part of Commons Compress' published API. It may change or disappear without warning.
readNextCode in class LZWInputStreamIOException - on errorprotected int addEntry(int previousCode, byte character) throws IOException
This method is only protected for technical reasons and is not part of Commons Compress' published API. It may change or disappear without warning.
addEntry in class LZWInputStreampreviousCode - the previous codecharacter - the next character to appendIOException - on errorprotected int decompressNextSymbol() throws IOException
This method is only protected for technical reasons and is not part of Commons Compress' published API. It may change or disappear without warning.
decompressNextSymbol in class LZWInputStreamIOException - on errorpublic static boolean matches(byte[] signature, int length)
signature - the bytes to checklength - the number of bytes to checkCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.