|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectj_waste.network.Packet
j_waste.network.ArbitraryPacket
This class represents the ArbitraryPacket which is an arbitrary packet and can contain any data.
| Field Summary |
| Fields inherited from class j_waste.network.Packet |
packet |
| Constructor Summary | |
ArbitraryPacket(byte[] field,
int size)
Constructs a new ArbitraryPacket with the specified field and size. |
|
| Method Summary | |
void |
finalizePacket()
Finalizes the packet. |
byte[] |
getField()
Returns the field (bytes) of this packet. |
int |
getSize()
This method returns the size of the packet. |
byte[] |
toByteArray()
Returns a byte array representation of the packet. |
| Methods inherited from class j_waste.network.Packet |
padCD, reverseBytes, reverseInt, reverseShort, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ArbitraryPacket(byte[] field,
int size)
field - The bytes that this packet will contain.size - The size of the packet (the length of the field array)| Method Detail |
public byte[] getField()
public int getSize()
public byte[] toByteArray()
toByteArray in class Packetpublic void finalizePacket()
finalizePacket in class Packet
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||