|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectserver.Common
public class Common
some basic methods that can be useful for both server and client
| Constructor Summary | |
|---|---|
Common()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
decodeStringPacket(byte[] buf)
extract the string from the other noise in the packet |
static byte[] |
encodeStringPacket(java.lang.String text)
create a byte array containing the length of the string and the string |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Common()
| Method Detail |
|---|
public static byte[] encodeStringPacket(java.lang.String text)
text - the string to be sent iun the packet
public static java.lang.String decodeStringPacket(byte[] buf)
buf - the byte array from the packet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||