@Deprecated @SPI public interface Codec
| 限定符和类型 | 字段和说明 |
|---|---|
static Object |
NEED_MORE_INPUT
已过时。
Need more input poison.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
decode(Channel channel,
InputStream input)
已过时。
Decode message.
|
void |
encode(Channel channel,
OutputStream output,
Object message)
已过时。
Encode message.
|
static final Object NEED_MORE_INPUT
@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–2018 The Apache Software Foundation. All rights reserved.