Codec2.DecodeResult| Constructor and Description |
|---|
CodecAdapter(Codec codec) |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(Channel channel,
ChannelBuffer buffer) |
void |
encode(Channel channel,
ChannelBuffer buffer,
Object message) |
Codec |
getCodec() |
public CodecAdapter(Codec codec)
public void encode(Channel channel, ChannelBuffer buffer, Object message) throws IOException
encode in interface Codec2IOExceptionpublic Object decode(Channel channel, ChannelBuffer buffer) throws IOException
decode in interface Codec2IOExceptionpublic Codec getCodec()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.