com.alibaba.dubbo.rpc.protocol.thrift
Class ThriftNativeCodec

java.lang.Object
  extended by com.alibaba.dubbo.rpc.protocol.thrift.ThriftNativeCodec
All Implemented Interfaces:
Codec

public class ThriftNativeCodec
extends Object
implements Codec

Author:
kimi

Field Summary
 
Fields inherited from interface com.alibaba.dubbo.remoting.Codec
NEED_MORE_INPUT
 
Constructor Summary
ThriftNativeCodec()
           
 
Method Summary
 Object decode(Channel channel, InputStream input)
          Decode message.
 void encode(Channel channel, OutputStream output, Object message)
          Encode message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftNativeCodec

public ThriftNativeCodec()
Method Detail

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.