public class Message extends Object
TODO for a later release: It may be worthwhile exploring whether MessageTypes could be merged here instead of being located in NDTConstants. Message/Type could also be made into an enumeration and checks for the current MessageType being assigned could be incorporated.
for more Message Types.| Modifier and Type | Field and Description |
|---|---|
(package private) byte[] | _yaBodyya body |
(package private) byte | _yTypey type |
| Constructor and Description |
|---|
Message()Creates a new Message with default type and body. |
| Modifier and Type | Method and Description |
|---|---|
byte[] | getBody()Get Message body as array |
byte | getType()Get Message Type |
void | initBodySize(int iParamSize)Utility method to initialize Message body |
void | setBody(byte[] baParamBody)Set Message body, given a byte array input |
void | setBody(byte[] baParamBody,
int iParamSize)Set Message body, given a byte array and a size parameter. |
void | setType(byte bParamType)Set Message Type |
public byte[] getBody()
public byte getType()
public void initBodySize(int iParamSize)
iParamSize - byte array sizepublic void setBody(byte[] baParamBody)
baParamBody - message body byte arraypublic void setBody(byte[] baParamBody,
int iParamSize)iParamSize - byte array sizebaParamBody - message body byte arraypublic void setType(byte bParamType)
bParamType - byte indicating Message Type