public final class ByteArrayHelper extends Object
Constructor and Description |
---|
ByteArrayHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
hexdump(byte[] buffer,
boolean ascii)
This method generates a formatted version of the data contained
in a byte array.
|
static String |
hexdump(byte[] buffer,
boolean ascii,
int columns,
String prefix)
This method generates a formatted version of the data contained
in a byte array.
|
static String |
hexdump(byte[] buffer,
int offset,
int length,
boolean ascii)
This method generates a formatted version of the data contained
in a byte array.
|
static String |
hexdump(byte[] buffer,
int offset,
int length,
boolean ascii,
int columns,
String prefix)
This method generates a formatted version of the data contained
in a byte array.
|
public static final String hexdump(byte[] buffer, int offset, int length, boolean ascii)
buffer
- data to be displayedoffset
- offset of start of data to be displayedlength
- length of data to be displayedascii
- flag indicating whether ASCII equivalent chars should also be displayedpublic static final String hexdump(byte[] buffer, boolean ascii)
buffer
- data to be displayedascii
- flag indicating whether ASCII equivalent chars should also be displayedpublic static final String hexdump(byte[] buffer, boolean ascii, int columns, String prefix)
buffer
- data to be displayedascii
- flag indicating whether ASCII equivalent chars should also be displayedcolumns
- number of columnsprefix
- prefix to be added before the start of the datapublic static final String hexdump(byte[] buffer, int offset, int length, boolean ascii, int columns, String prefix)
buffer
- data to be displayedoffset
- offset into bufferlength
- number of bytes to displayascii
- flag indicating whether ASCII equivalent chars should also be displayedcolumns
- number of columnsprefix
- prefix to be added before the start of the dataCopyright © 2000–2024 Packwood Software. All rights reserved.