public class DefaultPduTranscoder extends Object implements PduTranscoder
| Constructor and Description |
|---|
DefaultPduTranscoder(PduTranscoderContext context) |
| Modifier and Type | Method and Description |
|---|---|
Pdu |
decode(org.jboss.netty.buffer.ChannelBuffer buffer)
Decodes a ChannelBuffer into a new PDU.
|
protected Pdu |
doDecode(int commandLength,
org.jboss.netty.buffer.ChannelBuffer buffer) |
org.jboss.netty.buffer.ChannelBuffer |
encode(Pdu pdu)
Encodes a PDU into a new ChannelBuffer.
|
public DefaultPduTranscoder(PduTranscoderContext context)
public org.jboss.netty.buffer.ChannelBuffer encode(Pdu pdu) throws UnrecoverablePduException, RecoverablePduException
PduTranscoderencode in interface PduTranscoderpdu - The PDU to convert into a bufferUnrecoverablePduExceptionRecoverablePduExceptionpublic Pdu decode(org.jboss.netty.buffer.ChannelBuffer buffer) throws UnrecoverablePduException, RecoverablePduException
PduTranscoderdecode in interface PduTranscoderbuffer - The buffer to read data fromUnrecoverablePduExceptionRecoverablePduExceptionprotected Pdu doDecode(int commandLength, org.jboss.netty.buffer.ChannelBuffer buffer) throws UnrecoverablePduException, RecoverablePduException
Copyright © 2009-2014 Cloudhopper by Twitter. All Rights Reserved.