|
|||||||||||
| 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.HeadedPacket
j_waste.network.ChatReplyPacket
This is the class for the Chat Reply packet type.
| Field Summary |
| Fields inherited from class j_waste.network.HeadedPacket |
iscomplete, packetData, padBytes |
| Fields inherited from class j_waste.network.Packet |
packet |
| Constructor Summary | |
ChatReplyPacket()
Base constructor, creates an empty ChatReplyPacket. |
|
ChatReplyPacket(byte[] pkg)
Constructs a ChatReplyPacket given a byte array representation of the Packet. |
|
ChatReplyPacket(java.lang.String s)
Constructs a ChatReplyPacket with given sender, recipient and message. |
|
ChatReplyPacket(java.lang.String s,
byte[] guid)
Constructs a ChatReplyPacket with given sender, recipient, message and GUID. |
|
| Method Summary | |
void |
finalizePacket()
Finalizes this ChatReplyPacket. |
java.lang.String |
getSender()
Returns the sender of this ChatReplyPacket. |
void |
setSender(java.lang.String s)
Sets the sender of this ChatReplyPacket. |
byte[] |
toByteArray()
Returns a byte array representation of the packet. |
| Methods inherited from class j_waste.network.HeadedPacket |
createPacket, getData, getGeneralType, getGUID, getHeader, getIntPrio, getIntType, getLength, getMD5, getPrio, getTTL, getType, setLength, setTTL |
| 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 ChatReplyPacket()
public ChatReplyPacket(java.lang.String s)
s - the sender.
public ChatReplyPacket(java.lang.String s,
byte[] guid)
s - the sender.guid - the GUID.
public ChatReplyPacket(byte[] pkg)
throws InvalidPacketException
pkg - the Packet.| Method Detail |
public void setSender(java.lang.String s)
s - the sender.public java.lang.String getSender()
public void finalizePacket()
finalizePacket in class HeadedPacketpublic byte[] toByteArray()
toByteArray in class HeadedPacket
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||