Methods Summary |
---|
public java.lang.String | getAddress()Gets the address from the data stream.
return getString();
|
public int | getEncodingType()Gets the encoding type from the data stream.
return getInt();
|
public byte[] | getMessage(int len)Gets the message bytes from the data stream.
return getBytes(len);
|
public int | getMessageLength()Gets the length, in bytes, of the message from the data stream.
return getInt();
|
public java.lang.String | getPhoneNumber()Gets the phone number from the data stream.
return getString();
|
public int | getPort()Gets the port from the data stream.
return getInt();
|
public long | getTimeStamp()Gets the time stamp from the data stream.
return getLong();
|
public void | setAddress(java.lang.String address)Sets the address that is associated with the message.
putString(address);
|
public void | setEncodingType(int type)Writes the encoding type to the data stream. The type can be text,
ucs2, binary.
putInt(type);
|
public void | setMessage(byte[] msg)Writes the message bytes to the data stream.
putBytes(msg);
|
public void | setMessageLength(int msgLen)Writes the length of the message in the data stream..
msgLength = msgLen;
putInt(msgLen);
|
public void | setPhoneNumber(java.lang.String phNum)Sets the phone number that is associated with the message.
putString(phNum);
|
public void | setPort(int port)Sets the port that is associated with the message.
putInt(port);
|
public void | setTimeStamp(long timeStamp)Sets the timestamp that is associated with the message.
putLong(timeStamp);
|