|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecthp.opencall.media.sms.tl.PDU
A PDU is a SMS TL (Short Message Service Transport Layer) byte array message sent or received thanks to a play or record operation on a relevant SMS Resource.
Each PDU is composed of one or severals Parameter
| Constructor Summary | |
PDU(String aName,
int aParameterNumber)
|
|
| Method Summary | |
void |
decodePDU(byte[] encodedPDU)
Decode a PDU and assigns all the involving Parameters This method should be used when receiving a SMS TL PDU and the Oclet need to get the Parameters values. |
byte[] |
encodedPDU()
Encode a PDU thanks to the previous Parameters assignment. |
int |
getSizeInByte()
getSizeInByte calculates the PDU size in byte |
String |
toString()
Dump a PDU as a String This method is supply for debug only because of performance topic. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PDU(String aName,
int aParameterNumber)
| Method Detail |
public byte[] encodedPDU()
throws PDUException
This method should be used to build a SMS TL PDU to be sent thanks to a play operation.
This method throws a PDUException if the encoding can be proceded completly.
PDUException - if requested operation failsPlayer.play(java.lang.String[], int, hp.telephony.media.RTC[], java.util.Dictionary)
public void decodePDU(byte[] encodedPDU)
throws PDUException
This method should be used when receiving a SMS TL PDU and the Oclet need to get the Parameters values.
This method throws an DecodingException if the decoding can be proceded completly.
encodedPDU - is the encoded byte array PDU to decode.
PDUException - if requested operation failsRecorder.record(java.lang.String, hp.telephony.media.RTC[], java.util.Dictionary)public String toString()
This method is supply for debug only because of performance topic.
public int getSizeInByte()
throws PDUException
PDUException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||