com.alibaba.dubbo.remoting.transport.codec
Class TransportCodec

java.lang.Object
  extended by com.alibaba.dubbo.remoting.transport.AbstractCodec
      extended by com.alibaba.dubbo.remoting.transport.codec.TransportCodec
All Implemented Interfaces:
Codec2
Direct Known Subclasses:
TelnetCodec

public class TransportCodec
extends AbstractCodec

TransportCodec

Author:
william.liangf

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.alibaba.dubbo.remoting.Codec2
Codec2.DecodeResult
 
Constructor Summary
TransportCodec()
           
 
Method Summary
 Object decode(Channel channel, ChannelBuffer buffer)
           
 void encode(Channel channel, ChannelBuffer buffer, Object message)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportCodec

public TransportCodec()
Method Detail

encode

public void encode(Channel channel,
                   ChannelBuffer buffer,
                   Object message)
            throws IOException
Throws:
IOException

decode

public Object decode(Channel channel,
                     ChannelBuffer buffer)
              throws IOException
Throws:
IOException


Copyright © 2012–2017 Alibaba. All rights reserved.