com.alibaba.dubbo.remoting.exchange.codec
Class ExchangeCodec

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

public class ExchangeCodec
extends TelnetCodec

ExchangeCodec.

Author:
qianlei, william.liangf

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

Constructor Detail

ExchangeCodec

public ExchangeCodec()
Method Detail

getMagicCode

public Short getMagicCode()

encode

public void encode(Channel channel,
                   ChannelBuffer buffer,
                   Object msg)
            throws IOException
Specified by:
encode in interface Codec2
Overrides:
encode in class TelnetCodec
Throws:
IOException

decode

public Object decode(Channel channel,
                     ChannelBuffer buffer)
              throws IOException
Specified by:
decode in interface Codec2
Overrides:
decode in class TelnetCodec
Throws:
IOException


Copyright © 2012–2017 Alibaba. All rights reserved.