|
|||||||||||
| 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.SearchPacket
This is the class for the Search packet type.
| Field Summary |
| Fields inherited from class j_waste.network.HeadedPacket |
packetData, padBytes |
| Fields inherited from class j_waste.network.Packet |
packet |
| Constructor Summary | |
SearchPacket()
Base constructor of the SearchPacket class. |
|
SearchPacket(byte[] pkg)
|
|
SearchPacket(java.lang.String s)
Alternative constructor of the SearchPacket class. |
|
SearchPacket(java.lang.String s,
byte[] guid)
Alternative constructor of the SearchPacket class. |
|
| Method Summary | |
void |
finalizePacket()
Finalizes this SearchPacket. |
java.lang.String |
getSearchString()
Returns the search string of this SearchPacket. |
void |
setSearchString(java.lang.String s)
Sets the search string of this SearchPacket. |
byte[] |
toByteArray()
Returns a byte array representation of this 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 SearchPacket()
public SearchPacket(java.lang.String s)
s - the search string.
public SearchPacket(java.lang.String s,
byte[] guid)
s - the search string.guid - the GUID.
public SearchPacket(byte[] pkg)
throws InvalidPacketException
| Method Detail |
public void setSearchString(java.lang.String s)
s - the search string.public java.lang.String getSearchString()
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 | ||||||||||