Methods Summary |
---|
public int | getEncodingType()Get the encoding type from the data stream.
return getInt();
|
public byte[] | getMessage(int len)Get the message bytes from the data stream.
return getBytes(len);
|
public int | getMessageID()Get the message ID from the data stream..
return getInt();
|
public int | getMessageLength()Get the length, in bytes, of the message from the data stream.
return getInt();
|
public void | setEncodingType(int type)Write the encoding type to the data stream. The type can be text,
ucs2, binary.
putInt(type);
|
public void | setMessage(byte[] msg)Write the message bytes to the data stream.
putBytes(msg);
|
public void | setMessageID(int msgID)Set the message ID, or the channel to listen to, in the data stream..
putInt(msgID);
|
public void | setMessageLength(int msgLen)Write the length of the message in the data stream..
putInt(msgLen);
|