public class Utf8StringDebug extends Object
| Constructor and Description |
|---|
Utf8StringDebug() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static void debugString(String newString)
newString - String to be debuggedpublic static void debugString(String newString, int limit)
newString - String to be debuggedlimit - number of characters to be printedpublic static String displayString(String newString, int limit)
newString - String to be debuggedlimit - number of characters to be printedpublic static String printBytes(byte[] array, String name, int limit)
array - bytename - limit - number of characters to be printedpublic static String byteToHex(byte b)
b - in byteCopyright © 2009-2013. All Rights Reserved.