public abstract class CompressionCodec<IN,OUT> extends BufferCodec<IN,OUT>
DEFAULT_DELIMITER, delimiter| Modifier | Constructor and Description |
|---|---|
protected |
CompressionCodec(Codec<Buffer,IN,OUT> delegate) |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
apply(OUT out)
Execute the logic of the action, accepting the given parameter.
|
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.
|
decode, encodeaddDelimiterIfAny, decoder, doBufferDecode, doDelimitedBufferDecode, encoder, invokeCallbackOrReturnpublic Function<Buffer,IN> decoder(Consumer<IN> next)
Codecpublic Buffer apply(OUT out)
Functionout - The parameter to pass to the action.protected 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