|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sentilla.host.client.network.DecodeMessage
public class DecodeMessage
Decode a message from the network.
This is a helper class that can convert the contents of a class to a String.
Field Summary | |
---|---|
private static String |
outString
|
private static boolean |
showDetails
|
private static boolean |
showPrivate
|
Constructor Summary | |
---|---|
DecodeMessage()
|
Method Summary | |
---|---|
static Object |
decodeMessage(Object obj,
boolean showDetails,
boolean showPrivate)
Decode a message. |
static String |
printByteBuffer(ByteBuffer body)
Prints contents of a ByteBuffer. |
private static String |
printClass(Class c,
Object obj,
int indent,
Set<Object> printedSet)
Prints contents of any object. |
static String |
printMessage(Object obj,
boolean _showDetails,
boolean _showPrivate)
Print a message. |
static String |
toString(Object obj)
Returns a String version of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static String outString
private static boolean showDetails
private static boolean showPrivate
Constructor Detail |
---|
public DecodeMessage()
Method Detail |
---|
public static Object decodeMessage(Object obj, boolean showDetails, boolean showPrivate)
obj
- The object to decodeshowDetails
- Show the member values of the objectshowPrivate
- Show the private member values of the object
public static String toString(Object obj)
public static String printMessage(Object obj, boolean _showDetails, boolean _showPrivate)
obj
- The object to decode_showDetails
- Show the member values of the object_showPrivate
- Show the private member values of the objectprivate static String printClass(Class c, Object obj, int indent, Set<Object> printedSet) throws IllegalAccessException
IllegalAccessException
public static String printByteBuffer(ByteBuffer body)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |