|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectie.ncl.msg.Message
ie.ncl.msg.BinaryMessage
public class BinaryMessage
BinaryMessage extends the base class Message (used for all messages in the Generic API) by implementing the message body as byte[] data.
| Constructor Summary | |
|---|---|
BinaryMessage()
Create a binary message with no bytes and no address. |
|
BinaryMessage(Address destination)
Create a new binary message with a destination address and no bytes. |
|
BinaryMessage(Address destination,
byte[] bytes)
Create a new binary message with destination address and byte array body. |
|
BinaryMessage(BinaryMessage m)
Create a new message from an existing one. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getBody()
Get the message body. |
byte[] |
getBytes()
Get the bytes of the message. |
void |
setBody(java.lang.Object body)
Set the message body. |
void |
setBytes(byte[] bytes)
Set the bytes of the message. |
int |
size()
Get the number of bytes in the message body. |
| Methods inherited from class ie.ncl.msg.Message |
|---|
getAttribute, getAttributes, getCorrelationID, getDestination, getID, getSource, getType, putAttribute, removeAttribute, setAttributes, setCorrelationID, setDestination, setID, setSource, setType |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryMessage()
public BinaryMessage(Address destination)
public BinaryMessage(Address destination,
byte[] bytes)
public BinaryMessage(BinaryMessage m)
Message.Message(Message),
Attributes.copy()| Method Detail |
|---|
public byte[] getBytes()
public void setBytes(byte[] bytes)
public java.lang.Object getBody()
getBody in class Messagepublic void setBody(java.lang.Object body)
setBody in class Messagepublic int size()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||