public final class HexDump extends Object
Constructor and Description |
---|
HexDump() |
Modifier and Type | Method and Description |
---|---|
static void |
Dump(byte[] byt,
int len,
int offset)
Hex dump a byte array
|
static void |
Dump(byte[] byt,
int len,
int offset,
DebugInterface dbgDev)
Hex dump a byte array to a debug output device
|
static void |
Dump(byte[] byt,
int len,
int offset,
PrintStream stream)
Hex dump a byte array
|
static String |
hexString(byte[] buf)
Generate a hex string for the specified bytes
|
static String |
hexString(byte[] buf,
int off,
int len,
String gap)
Generate a hex string for the specified bytes
|
static String |
hexString(byte[] buf,
int len,
String gap)
Generate a hex string for the specified bytes
|
static String |
hexString(byte[] buf,
String gap)
Generate a hex string for the specified bytes
|
static String |
hexString(String str)
Generate a hex string for the specified string
|
static String |
hexString(String str,
String gap)
Generate a hex string for the specified string
|
public static final void Dump(byte[] byt, int len, int offset)
byt
- Byte array to dumplen
- Length of data to dumpoffset
- Offset to start data dumppublic static final void Dump(byte[] byt, int len, int offset, PrintStream stream)
byt
- Byte array to dumplen
- Length of data to dumpoffset
- Offset to start data dumpstream
- Output stream to dump the output to.public static final void Dump(byte[] byt, int len, int offset, DebugInterface dbgDev)
byt
- Byte array to dumplen
- Length of data to dumpoffset
- Offset to start data dumpdbgDev
- Debug device for outputpublic static final String hexString(String str)
str
- Stringpublic static final String hexString(String str, String gap)
str
- Stringgap
- Stringpublic static final String hexString(byte[] buf)
buf
- byte[]public static final String hexString(byte[] buf, String gap)
buf
- byte[]gap
- Stringpublic static final String hexString(byte[] buf, int len, String gap)
buf
- byte[]len
- intgap
- StringCopyright © 2005–2018 Alfresco Software. All rights reserved.