com.alibaba.dubbo.remoting.transport.codec
Class TransportCodec
java.lang.Object
com.alibaba.dubbo.remoting.transport.AbstractCodec
com.alibaba.dubbo.remoting.transport.codec.TransportCodec
- All Implemented Interfaces:
- Codec
- Direct Known Subclasses:
- TelnetCodec
public class TransportCodec
- extends AbstractCodec
TransportCodec
- Author:
- william.liangf
TransportCodec
public TransportCodec()
encode
public void encode(Channel channel,
OutputStream output,
Object message)
throws IOException
- Description copied from interface:
Codec
- Encode message.
- Parameters:
channel - channel.output - output stream.message - message.
- Throws:
IOException
decode
public Object decode(Channel channel,
InputStream input)
throws IOException
- Description copied from interface:
Codec
- Decode message.
- Parameters:
channel - channel.input - input stream.
- Returns:
- message or
NEED_MORE_INPUT poison.
- Throws:
IOException- See Also:
Codec.NEED_MORE_INPUT
Copyright © 2012 Alibaba. All Rights Reserved.