Interface Compressor
-
- All Known Implementing Classes:
DeflateCompressor
public interface Compressor
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
isCompressed
boolean isCompressed(BytesReference bytes)
-
streamInput
StreamInput streamInput(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
streamOutput
StreamOutput streamOutput(StreamOutput out) throws java.io.IOException
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
-
-