|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.dalsemi.jellybeans.Debug
This class encapsulates a small collection of hopefully useful debug utilities. All methods are static to keep performance up and memory usage down. We don't want these things to get in the way of the application we're trying to debug.
| Field Summary | |
static boolean |
defaultStreams
|
| Method Summary | |
static void |
debugDump(byte[] arr,
int length)
Dump an array to info port. |
static void |
debugDump(int b)
Dump a byte to info port. |
static void |
debugDump(java.lang.String out)
Dump a string to info port. |
static void |
dump(byte[] arr,
int length)
|
static void |
dump(int b)
|
static void |
dump(java.lang.String out)
|
static void |
hexDump(byte[] b)
Dump hex representation of a byte array to System.out. |
static void |
hexDump(byte[] b,
int length)
Dump hex representation of a byte array to System.out. |
static void |
hexDump(int i)
Dump hex representation of a four byte int to System.out. |
static void |
intDump(int iVal)
Dump hex representation of a four byte int to System.out. |
static void |
resetDefaultStreams(boolean closeIn,
boolean closeOut,
boolean closeErr)
Sets System.out, System.err, and System.in to Null Streams. |
static void |
setDefaultStreams()
Sets the old TINI default streams to Serial port 0. |
static void |
setNativeVerboseDebugSpew(boolean verbose)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static boolean defaultStreams
| Method Detail |
public static void hexDump(int i)
i - integer to dumppublic static void hexDump(byte[] b)
b - byte array to dump
public static void hexDump(byte[] b,
int length)
b - byte array to dumplength - length of arraypublic static void debugDump(java.lang.String out)
out - String to dump.public static void dump(java.lang.String out)
public static void debugDump(byte[] arr,
int length)
arr - Array to dumplength - Length of array
public static void dump(byte[] arr,
int length)
public static void debugDump(int b)
b - public static void dump(int b)
public static void intDump(int iVal)
iVal - integer to dumphexDump(int i)public static void setDefaultStreams()
public static void resetDefaultStreams(boolean closeIn,
boolean closeOut,
boolean closeErr)
public static void setNativeVerboseDebugSpew(boolean verbose)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||