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 InputStream |
createInputStream(InputStream parent) |
protected abstract OutputStream |
createOutputStream(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 InputStream createInputStream(InputStream parent) throws IOException
IOExceptionprotected abstract OutputStream createOutputStream(OutputStream parent) throws IOException
IOExceptionCopyright © 2016. All rights reserved.