PduTranscoder
public class PduTranscoder
Extends: java.lang.Object
PduTranscoder is responsible for serializing and deserializing SMPP PDUs to and from raw byte buffers using Netty's ByteBuf. It acts as a bridge between the high-level PDU objects and the low-level binary protocol format used over the wire. This class is used to encode outgoing messages and decode incoming ones.
Constructor:
public PduTranscoder()
Creates a new instance of the PduTranscoder. No configuration is required at instantiation.
Methods:
ByteBuf encode(Pdu pdu) | Serializes the provided Pdu into a binary ByteBuf for network transmission. |
Pdu decode(ByteBuf buffer) | Parses a binary ByteBuf and reconstructs the corresponding Pdu object. |
Methods inherited from class java.lang.Object |
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Exception Note:
Both encode() and decode() may throw:
UnrecoverablePduException – when a fatal issue is detected and the PDU cannot be processed.
RecoverablePduException – when a non-fatal, correctable issue occurs during (de)serialization.
Start innovating with Mobius
What's next? Let's talk!