| Modifier | Constructor and Description |
|---|---|
protected |
CompressionCodec(Codec<Buffer,IN,OUT> delegate) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.io.InputStream |
createInputStream(java.io.InputStream parent) |
protected abstract java.io.OutputStream |
createOutputStream(java.io.OutputStream parent) |
Function<Buffer,IN> |
decoder(Consumer<IN> next)
Provide the caller with a decoder to turn a source object into an instance of the input
type.
|
Function<OUT,Buffer> |
encoder()
Provide the caller with an encoder to turn an output object into an instance of the source
type.
|
public Function<Buffer,IN> decoder(Consumer<IN> next)
Codecpublic Function<OUT,Buffer> encoder()
Codecprotected abstract java.io.InputStream createInputStream(java.io.InputStream parent)
throws java.io.IOException
java.io.IOExceptionprotected abstract java.io.OutputStream createOutputStream(java.io.OutputStream parent)
throws java.io.IOException
java.io.IOException