com.mindbright.util
Class HexDump

java.lang.Object
  extended bycom.mindbright.util.HexDump

public class HexDump
extends java.lang.Object


Constructor Summary
HexDump()
           
 
Method Summary
static java.lang.String formatHex(int i, int sz)
           
static java.lang.String intToString(int n)
          Returns a string of 8 hexadecimal digits (most significant digit first) corresponding to the integer n, which is treated as unsigned.
static void print(java.math.BigInteger bi)
           
static void print(byte[] buf)
           
static void print(byte[] buf, int off, int len)
           
static void print(java.io.OutputStream out, byte[] buf, int off, int len)
           
static void print(java.io.OutputStream out, java.lang.String header, boolean showAddr, byte[] buf, int off, int len)
           
static void print(java.lang.String header, boolean showAddr, byte[] buf, int off, int len)
           
static java.lang.String toString(byte[] ba)
          Returns a string of hexadecimal digits from a byte array.
static java.lang.String toString(byte[] ba, int offset, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexDump

public HexDump()
Method Detail

intToString

public static java.lang.String intToString(int n)
Returns a string of 8 hexadecimal digits (most significant digit first) corresponding to the integer n, which is treated as unsigned.


toString

public static java.lang.String toString(byte[] ba)
Returns a string of hexadecimal digits from a byte array. Each byte is converted to 2 hex symbols.


toString

public static java.lang.String toString(byte[] ba,
                                        int offset,
                                        int length)

formatHex

public static java.lang.String formatHex(int i,
                                         int sz)

print

public static void print(byte[] buf,
                         int off,
                         int len)

print

public static void print(java.io.OutputStream out,
                         byte[] buf,
                         int off,
                         int len)

print

public static void print(java.lang.String header,
                         boolean showAddr,
                         byte[] buf,
                         int off,
                         int len)

print

public static void print(java.io.OutputStream out,
                         java.lang.String header,
                         boolean showAddr,
                         byte[] buf,
                         int off,
                         int len)

print

public static void print(byte[] buf)

print

public static void print(java.math.BigInteger bi)