接口 Codec
-
- 所有已知实现类:
DecodeableRpcInvocation
,DecodeableRpcResult
@Deprecated @SPI public interface Codec
已过时。Codec. (SPI, Singleton, ThreadSafe)
-
-
字段概要
字段 修饰符和类型 字段 说明 static Object
NEED_MORE_INPUT
已过时。Need more input poison.
-
-
-
字段详细资料
-
NEED_MORE_INPUT
static final Object NEED_MORE_INPUT
已过时。Need more input poison.
-
-
方法详细资料
-
encode
@Adaptive("codec") void encode(Channel channel, OutputStream output, Object message) throws IOException
已过时。Encode message.- 参数:
channel
- channel.output
- output stream.message
- message.- 抛出:
IOException
-
decode
@Adaptive("codec") Object decode(Channel channel, InputStream input) throws IOException
已过时。Decode message.- 参数:
channel
- channel.input
- input stream.- 返回:
- message or
NEED_MORE_INPUT
poison. - 抛出:
IOException
- 另请参阅:
NEED_MORE_INPUT
-
-