Class DeflateCompressor
- java.lang.Object
-
- org.elasticsearch.common.compress.DeflateCompressor
-
- All Implemented Interfaces:
Compressor
public class DeflateCompressor extends java.lang.Object implements Compressor
Compressorimplementation based on the DEFLATE compression algorithm.
-
-
Constructor Summary
Constructors Constructor Description DeflateCompressor()
-
Method Summary
Modifier and Type Method Description booleanisCompressed(BytesReference bytes)StreamInputstreamInput(StreamInput in)StreamOutputstreamOutput(StreamOutput out)Creates a new stream output that compresses the contents and writes to the provided stream output.
-
-
-
Method Detail
-
isCompressed
public boolean isCompressed(BytesReference bytes)
- Specified by:
isCompressedin interfaceCompressor
-
streamInput
public StreamInput streamInput(StreamInput in) throws java.io.IOException
- Specified by:
streamInputin interfaceCompressor- Throws:
java.io.IOException
-
streamOutput
public StreamOutput streamOutput(StreamOutput out) throws java.io.IOException
Description copied from interface:CompressorCreates a new stream output that compresses the contents and writes to the provided stream output. Closing the returnedStreamOutputwill close the provided stream output.- Specified by:
streamOutputin interfaceCompressor- Throws:
java.io.IOException
-
-