Interface Compressor
-
- All Known Implementing Classes:
DeflateCompressor
public interface Compressor
-
-
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
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 returnedStreamOutputwill close the provided stream output.- Throws:
java.io.IOException
-
-