Interface Compressor
- All Known Implementing Classes:
DeflateCompressor
public interface Compressor
-
Method Summary
Modifier and Type Method 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.
-
Method Details
-
isCompressed
-
streamInput
- Throws:
java.io.IOException
-
streamOutput
Creates a new stream output that compresses the contents and writes to the provided stream output. Closing the returnedStreamOutput
will close the provided stream output.- Throws:
java.io.IOException
-