【发布时间】:2015-10-27 15:46:35
【问题描述】:
Apache camel netty tcp component doc(http://camel.apache.org/netty.html) 说,
编码器
A custom ChannelHandler class that can be used to perform special marshalling of outbound payloads. Must override org.jboss.netty.channel.ChannelDownStreamHandler.
解码器
A custom ChannelHandler class that can be used to perform special marshalling of inbound payloads. Must override org.jboss.netty.channel.ChannelUpStreamHandler.
您能否给我举个例子,说明如何/在重写类中做什么。我想要一个自定义的 tcp 编码器/解码器来读取/写入字节。
【问题讨论】:
标签: java tcp apache-camel netty