com.ning.compress.lzf.LZFInputStream )
in cases where "push" operation is important and/or blocking is not allowed;
for example, when handling asynchronous HTTP responses.
Note that API does not define the way that listener is attached: this is typically passed through to constructor of the implementation.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public abstract boolean | Returns: True, if caller should process and feed more data; false if caller is not interested in more data and processing should be terminated. (andcomplete should be called immediately)Method called to feed more compressed data to be uncompressed, and sent to possible listeners. |
| Uncompressor | back to summary |
|---|---|
| public Uncompressor() | |
| complete | back to summary |
|---|---|
| public abstract void complete() throws IOException Method called to indicate that all data to uncompress has already been fed. This typically results in last block of data being uncompressed, and results being sent to listener(s); but may also throw an exception if incomplete block was passed. | |
| feedCompressedData | back to summary |
|---|---|
| public abstract boolean feedCompressedData(byte[] comp, int offset, int len) throws IOException Method called to feed more compressed data to be uncompressed, and sent to possible listeners. Note return value was added (from void to boolean) in 0.9.9
| |