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 Compressor
public StreamInput streamInput(StreamInput in) throws java.io.IOException
streamInput
in interface Compressor
java.io.IOException
public StreamOutput streamOutput(StreamOutput out) throws java.io.IOException
Compressor
StreamOutput
will close the provided stream output.streamOutput
in interface Compressor
java.io.IOException