com.develop.util
Class HexFormatter
java.lang.Object
|
+--com.develop.util.HexFormatter
- public class HexFormatter
- extends java.lang.Object
Helper class for doing hex dumps of arrays to String. Useful for
debugging, esp. on IDEs that are not hex-friendly.
Method Summary |
(package private) static void |
()
|
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
hexchars
public static final char[] hexchars
printChars
public static final char[] printChars
HexFormatter
public HexFormatter()
convertBytesToString
public static java.lang.String convertBytesToString(byte[] bytes)
convertBytesToString
public static java.lang.String convertBytesToString(byte[] bytes,
int lineLength,
boolean showChars)
convertBytesToString
public static java.lang.String convertBytesToString(byte[] bytes,
int startOffset,
int endOffset,
int lineLength,
boolean showChars)
static void ()
getHexString
public static char[] getHexString(byte b)
New Jawin designed by Vitally Shelest. This product includes software developed by the DevelopMentor OpenSource Project (http://www.develop.com/OpenSource).