Provides a single function to take an array of bytes and display it in hexadecimal form.
Origin of code: POI.
| Modifier and Type | Field and Description |
|---|---|
| private static final StringBuffer | |
| private static final char[] | |
| private static final StringBuffer | |
| private static final int[] | |
| public static final String | EOL
The line-separator (initializes to "line.separator" system property. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | dump(byte[]
the byte array to be dumped data, long its offset, whatever that might mean offset, OutputStream the OutputStream to which the data is to be
written stream, int initial index into the byte array index)Dump an array of bytes to an OutputStream. |
| private static StringBuffer | Returns: StringBuffer containing the dumped value.the long value to be dumped value)Dump a long value into a StringBuffer. |
| private static StringBuffer | Returns: StringBuffer containing the dumped value.the byte value to be dumped value)Dump a byte value into a StringBuffer. |
| _cbuffer | back to summary |
|---|---|
| private static final StringBuffer _cbuffer | |
| _hexcodes | back to summary |
|---|---|
| private static final char[] _hexcodes | |
| _lbuffer | back to summary |
|---|---|
| private static final StringBuffer _lbuffer | |
| _shifts | back to summary |
|---|---|
| private static final int[] _shifts | |
| EOL | back to summary |
|---|---|
| public static final String EOL The line-separator (initializes to "line.separator" system property. | |
| HexDump | back to summary |
|---|---|
| public HexDump() Instances should NOT be constructed in standard programming. | |
| dump | back to summary |
|---|---|
| public static void dump(byte[] data, long offset, OutputStream stream, int index) throws IOException, ArrayIndexOutOfBoundsException, IllegalArgumentException Dump an array of bytes to an OutputStream.
| |
| dump | back to summary |
|---|---|
| private static StringBuffer dump(long value) Dump a long value into a StringBuffer.
| |
| dump | back to summary |
|---|---|
| private static StringBuffer dump(byte value) Dump a byte value into a StringBuffer.
| |