public final class HexDump
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
parse(byte[] bytes)
Get a string suitable for printing out.
|
static java.lang.String |
parse(byte[] bytes,
int offset,
int length)
Get a string suitable for printing out.
|
public static java.lang.String parse(byte[] bytes)
Equivalent to calling parse(b, 0, b.length);
parse(byte[], int, int)
public static java.lang.String parse(byte[] bytes, int offset, int length)
What you get is.
[54] [68] [65] [20] [71] [75] [69] [63] [6b] [20] [62] [72] The quick br
[6f] [77] [6e] [20] [66] [6f] [78] [20] [6a] [75] [6d] [70] own fox jump
[73] [20] [6f] [76] [65] [72] [20] [74] [68] [65] [20] [6c] s over the l
[61] [7a] [79] [20] [64] [6f] [67] azy dog
Total Bytes 43
Unprintable "ASCII" characters (< 32, > 255) are represented by a "."
bytes
- the bytes to create hexdump ofoffset
- the offset to start from.length
- the number of bytes to print out