public class DeflateCompressor extends java.lang.Object implements Compressor
Compressor implementation based on the DEFLATE compression algorithm.| Constructor and Description |
|---|
DeflateCompressor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCompressed(BytesReference bytes) |
StreamInput |
streamInput(StreamInput in) |
StreamOutput |
streamOutput(StreamOutput out)
Creates a new stream output that compresses the contents and writes to the provided stream
output.
|
public boolean isCompressed(BytesReference bytes)
isCompressed in interface Compressorpublic StreamInput streamInput(StreamInput in) throws java.io.IOException
streamInput in interface Compressorjava.io.IOExceptionpublic StreamOutput streamOutput(StreamOutput out) throws java.io.IOException
CompressorStreamOutput will close the provided stream output.streamOutput in interface Compressorjava.io.IOException