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