org.apache.commons.io
Class HexDump
java.lang.Object
org.apache.commons.io.HexDump
public class HexDump
extends java.lang.Object
Dumps data in hexadecimal format.
Derived from a HexDump utility I wrote in June 2001.
Taken from the POI project.
$Revision: 1.8 $ $Date: 2004/02/23 04:35:59 $- Scott Sanders (sanders at apache dot org)
- Marc Johnson
static String | EOL - line-separator (initializes to "line.separator" system property.
|
private static StringBuffer | _cbuffer
|
private static char[] | _hexcodes
|
private static StringBuffer | _lbuffer
|
private static int[] | _shifts
|
HexDump() - Instances should NOT be constructed in standard programming.
|
private static StringBuffer | dump(byte value)
|
static void | dump(byte[] data, long offset, OutputStream stream, int index) - dump an array of bytes to an OutputStream
|
private static StringBuffer | dump(long value)
|
EOL
public static final String EOL
line-separator (initializes to "line.separator" system property.
_cbuffer
private static final StringBuffer _cbuffer
_hexcodes
private static final char[] _hexcodes
_lbuffer
private static final StringBuffer _lbuffer
_shifts
private static final int[] _shifts
HexDump
public HexDump()
Instances should NOT be constructed in standard programming.
dump
private static StringBuffer dump(byte value)
dump
public static void dump(byte[] data,
long offset,
OutputStream stream,
int index)
throws IOException,
ArrayIndexOutOfBoundsException,
IllegalArgumentException
dump an array of bytes to an OutputStream
data
- the byte array to be dumpedoffset
- its offset, whatever that might meanstream
- the OutputStream to which the data is to be
writtenindex
- initial index into the byte array
dump
private static StringBuffer dump(long value)