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.


Field Summary
static char[] hexchars
           
static char[] printChars
           
 
Constructor Summary
HexFormatter()
           
 
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
 

Field Detail

hexchars

public static final char[] hexchars

printChars

public static final char[] printChars
Constructor Detail

HexFormatter

public HexFormatter()
Method Detail

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).