|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marre.sms.SmsUdhElement
Represents an User Data Header Element
Field Summary | |
protected int |
myUdhIei
|
protected byte[] |
myUdhIeiData
|
Constructor Summary | |
SmsUdhElement(int theUdhIei,
byte[] theUdhIeiData)
Creates an SmsUdhElement |
Method Summary | |
byte[] |
getData()
Return the UDH element including the UDH "header" (two bytes) |
int |
getTotalSize()
Returns the total length of this UDH element. |
byte[] |
getUdhIeiData()
Returns the Udh Iei Data excluding the UDH "header" |
int |
getUdhIeiDataLength()
Returns the length of the UDH iei data The length returned is only the length of the data |
void |
writeTo(java.io.OutputStream os)
Writes the UDH element including UDH "header" to the given stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int myUdhIei
protected byte[] myUdhIeiData
Constructor Detail |
public SmsUdhElement(int theUdhIei, byte[] theUdhIeiData)
theUdhIei
- theUdhIeiData
- Method Detail |
public int getTotalSize()
The length is including the UDH data length and the UDH "header" (2 bytes)
public int getUdhIeiDataLength()
The length returned is only the length of the data
public byte[] getUdhIeiData()
public byte[] getData()
public void writeTo(java.io.OutputStream os) throws java.io.IOException
os
- Stream to write to
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |