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[] |
_yaBody |
(package private) byte |
_yType |
Constructor and Description |
---|
Message() |
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 getType()
public void setType(byte bParamType)
bParamType
- byte indicating Message Typepublic byte[] getBody()
public void setBody(byte[] baParamBody)
baParamBody
- message body byte arraypublic void setBody(byte[] baParamBody, int iParamSize)
iParamSize
- byte array sizebaParamBody
- message body byte arraypublic void initBodySize(int iParamSize)
iParamSize
- byte array size