public interface PduTranscoder
org.jboss.netty.buffer.ChannelBuffer encode(Pdu pdu) throws UnrecoverablePduException, RecoverablePduException
pdu - The PDU to convert into a bufferUnrecoverablePduEncodingException - Thrown if there is an unrecoverable
error while encoding the buffer. Recommended action is to rebind
the session.RecoverablePduEncodingException - Thrown if there is recoverable
error while encoding the buffer. A good example is an optional parameter
that is invalid or a terminating null byte wasn't found.UnrecoverablePduExceptionRecoverablePduExceptionPdu decode(org.jboss.netty.buffer.ChannelBuffer buffer) throws UnrecoverablePduException, RecoverablePduException
buffer - The buffer to read data fromUnrecoverablePduEncodingException - Thrown if there is an unrecoverable
error while decoding the buffer. Recommended action is to rebind
the session.RecoverablePduEncodingException - Thrown if there is recoverable
error while decoding the buffer. A good example is an optional parameter
that is invalid or a terminating null byte wasn't found.UnrecoverablePduExceptionRecoverablePduExceptionCopyright © 2009-2014 Cloudhopper by Twitter. All Rights Reserved.