|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrescuecore.LongUDPMessage
This class encapsulates a long UDP message, as defined by the robocup rescue manual version 0.4
Field Summary | |
static int |
CHUNK_SIZE
|
Constructor Summary | |
LongUDPMessage(byte[] data)
Construct a new LongUDPMessage containing the given data |
Method Summary | |
static LongUDPMessage |
defragment(LongUDPFragment[] fragments)
Defragment a set of LongUDPFragments into one LongUDPMessage |
LongUDPFragment[] |
fragment(short id)
Break up this message into fragments ready for sending |
byte[] |
getData()
Get the body of this message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CHUNK_SIZE
Constructor Detail |
public LongUDPMessage(byte[] data)
data
- The body of the messageMethod Detail |
public LongUDPFragment[] fragment(short id)
id
- The id number assigned to each fragment
public byte[] getData()
public static LongUDPMessage defragment(LongUDPFragment[] fragments)
fragments
- The fragmented message to reassemble
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |