Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

mindbright.util
Class HexDump  view HexDump download HexDump.java

java.lang.Object
  extended bymindbright.util.HexDump

public class HexDump
extends java.lang.Object


Field Summary
private static char[] HEX_DIGITS
           
 
Constructor Summary
HexDump()
           
 
Method Summary
static java.lang.String formatHex(int i, int sz)
           
static void hexDump(byte[] buf, int off, int len)
           
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.
private static java.lang.String toString(byte[] ba)
          Returns a string of hexadecimal digits from a byte array.
private 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
 

Field Detail

HEX_DIGITS

private static final char[] HEX_DIGITS
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

private 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

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

formatHex

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

hexDump

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