com.develop.util
Class HexFormatter

java.lang.Object
  extended bycom.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
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

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)

getHexString

public static char[] getHexString(byte b)


Composia Soft Ltd. Designed by Vitally Shelest. .