|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.common.Utf8StringDebug
public class Utf8StringDebug
A class purely for debugging UTF-8 Strings.
| Constructor Summary | |
|---|---|
Utf8StringDebug()
|
|
| Method Summary | |
|---|---|
static String |
byteToHex(byte b)
Convert byte to hex |
static void |
debugString(String newString)
Simple entry point, Looks for only multi-byte characters |
static void |
debugString(String newString,
int limit)
Optional 'limit' can be set to 0 to show all characters |
static String |
displayString(String newString,
int limit)
Used recursively to pull the string apart |
static String |
printBytes(byte[] array,
String name,
int limit)
Print the bytes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utf8StringDebug()
| Method Detail |
|---|
public static void debugString(String newString)
newString - String to be debugged
public static void debugString(String newString,
int limit)
newString - String to be debuggedlimit - number of characters to be printed
public static String displayString(String newString,
int limit)
newString - String to be debuggedlimit - number of characters to be printed
public static String printBytes(byte[] array,
String name,
int limit)
array - bytename - limit - number of characters to be printed
public static String byteToHex(byte b)
b - in byte
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||