Interface Compressor
- All Known Implementing Classes:
DeflateCompressor
public interface Compressor
-
Method Summary
Modifier and Type Method Description intheaderLength()booleanisCompressed(BytesReference bytes)StreamInputstreamInput(StreamInput in)StreamOutputstreamOutput(java.io.OutputStream out)Creates a new stream output that compresses the contents and writes to the provided stream output.
-
Method Details
-
isCompressed
-
headerLength
int headerLength() -
streamInput
- Throws:
java.io.IOException
-
streamOutput
Creates a new stream output that compresses the contents and writes to the provided stream output. Closing the returnedStreamOutputwill close the provided stream output.- Throws:
java.io.IOException
-