@Deprecated @SPI public interface Codec
| 限定符和类型 | 字段和说明 |
|---|---|
static Object |
NEED_MORE_INPUT
已过时。
Need more input poison.
|
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–2021 The Apache Software Foundation. All rights reserved.