|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.misc.MessageNest
public class MessageNest
Implementation of Message
interface that performs
message nesting (header, data).
Field Summary | |
---|---|
private Message |
data
Nested message body. |
private Message |
header
Nested message header. |
Fields inherited from interface jist.swans.misc.Message |
---|
NULL |
Constructor Summary | |
---|---|
MessageNest(Message header,
Message data)
Created new nested message. |
Method Summary | |
---|---|
void |
getBytes(byte[] msg,
int offset)
Store packet into byte array. |
int |
getSize()
Return packet size or Constants.ZERO_WIRE_SIZE. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Message header
private Message data
Constructor Detail |
---|
public MessageNest(Message header, Message data)
header
- nested message headerdata
- nested message bodyMethod Detail |
---|
public int getSize()
getSize
in interface Message
public void getBytes(byte[] msg, int offset)
getBytes
in interface Message
msg
- destination byte arrayoffset
- byte array starting offset
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |