public final class XmlPduInterface
extends java.lang.Object
Constructor and Description |
---|
XmlPduInterface() |
Modifier and Type | Method and Description |
---|---|
static java.lang.StringBuffer |
PduToXml(byte[] pdu)
Decodes a PDU (Protocol Data Unit) into the corresponding XML-element.
|
static byte[] |
XmlToPdu(java.lang.StringBuffer xml)
Encodes an XML-element into the corresponding PDU (Protocol Data Unit).
|
public static byte[] XmlToPdu(java.lang.StringBuffer xml) throws icube.xmlpdu.infra.XmlPduException
xml
- Xml-element to encode.icube.xmlpdu.infra.XmlPduException
- Thrown for any detected error.public static java.lang.StringBuffer PduToXml(byte[] pdu) throws icube.xmlpdu.infra.XmlPduException
pdu
- The PDU byte array to decode.icube.xmlpdu.infra.XmlPduException
- Thrown for any detected error.