|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.develop.util.HexFormatter
Helper class for doing hex dumps of arrays to String. Useful for debugging, esp. on IDEs that are not hex-friendly.
| Field Summary | |
static char[] |
hexchars
|
static char[] |
printChars
|
| Constructor Summary | |
HexFormatter()
|
|
| Method Summary | |
static java.lang.String |
convertBytesToString(byte[] bytes)
|
static java.lang.String |
convertBytesToString(byte[] bytes,
int lineLength,
boolean showChars)
|
static java.lang.String |
convertBytesToString(byte[] bytes,
int startOffset,
int endOffset,
int lineLength,
boolean showChars)
|
static char[] |
getHexString(byte b)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final char[] hexchars
public static final char[] printChars
| Constructor Detail |
public HexFormatter()
| Method Detail |
public static java.lang.String convertBytesToString(byte[] bytes)
public static java.lang.String convertBytesToString(byte[] bytes,
int lineLength,
boolean showChars)
public static java.lang.String convertBytesToString(byte[] bytes,
int startOffset,
int endOffset,
int lineLength,
boolean showChars)
public static char[] getHexString(byte b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||