public interface PduTranscoder
| Modifier and Type | Method and Description |
|---|---|
Pdu |
decode(org.jboss.netty.buffer.ChannelBuffer buffer)
Decodes a ChannelBuffer into a new PDU.
|
org.jboss.netty.buffer.ChannelBuffer |
encode(Pdu pdu)
Encodes a PDU into a new ChannelBuffer.
|
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–2015 Fizzed, Inc. All rights reserved.