com.alibaba.dubbo.remoting.transport.codec
Class CodecAdapter
java.lang.Object
com.alibaba.dubbo.remoting.transport.codec.CodecAdapter
- All Implemented Interfaces:
- Codec2
public class CodecAdapter
- extends Object
- implements Codec2
- Author:
- kimi
CodecAdapter
public CodecAdapter(Codec codec)
encode
public void encode(Channel channel,
ChannelBuffer buffer,
Object message)
throws IOException
- Specified by:
encode
in interface Codec2
- Throws:
IOException
decode
public Object decode(Channel channel,
ChannelBuffer buffer)
throws IOException
- Specified by:
decode
in interface Codec2
- Throws:
IOException
getCodec
public Codec getCodec()
Copyright © 2012–2017 Alibaba. All rights reserved.