com.alibaba.dubbo.rpc.protocol.thrift
Class ThriftNativeCodec
java.lang.Object
com.alibaba.dubbo.rpc.protocol.thrift.ThriftNativeCodec
- All Implemented Interfaces:
- Codec
public class ThriftNativeCodec
- extends Object
- implements Codec
- Author:
- kimi
ThriftNativeCodec
public ThriftNativeCodec()
encode
public void encode(Channel channel,
OutputStream output,
Object message)
throws IOException
- Description copied from interface:
Codec
- Encode message.
- Specified by:
encode in interface Codec
- 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.
- Specified by:
decode in interface Codec
- 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.