| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Buffer | Returns: theBuffer that contains the compressed data. The caller of this method takes
ownership of the buffer. The return value will never be null.the input, BufferAllocator Buffer that contains the data to be compressed.the allocator)BufferAllocator that is used to allocate a new buffer (if needed) to write the
compressed bytes too.This method will read from the input |
| public Buffer | Returns: theBuffer which represent the end of the compression stream, which might be empty if the
compressor don't need a trailer to signal the end. The caller of this method takes
ownership of the buffer. The return value will never be null.By calling this method we signal that the compression stream is marked as finish. |
| public boolean | Returns: true if the decompressor was closed, false otherwise.Return |
| public boolean | Returns: true if the compressor was marked as finished, false otherwise.Returns |
| close | back to summary |
|---|---|
| public void close() Redeclares java. #
Close the compressor. After this method was called
| |
| compress | back to summary |
|---|---|
| public Buffer compress(Buffer input, BufferAllocator allocator) throws CompressionException This method will read from the input
| |
| finish | back to summary |
|---|---|
| public Buffer finish(BufferAllocator allocator) throws CompressionException By calling this method we signal that the compression stream is marked as finish. The returned
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Return
| |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() Returns
| |