@Deprecated @SPI public interface Codec
| Modifier and Type | Field and Description |
|---|---|
static Object |
NEED_MORE_INPUT
Deprecated.
Need more input poison.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(Channel channel,
InputStream input)
Deprecated.
Decode message.
|
void |
encode(Channel channel,
OutputStream output,
Object message)
Deprecated.
Encode message.
|
static final Object NEED_MORE_INPUT
decode(Channel, InputStream)@Adaptive(value="codec") void encode(Channel channel, OutputStream output, Object message) throws IOException
channel - channel.output - output stream.message - message.IOException@Adaptive(value="codec") Object decode(Channel channel, InputStream input) throws IOException
channel - channel.input - input stream.NEED_MORE_INPUT poison.IOExceptionNEED_MORE_INPUTCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.