|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.common.BinaryDump
public class BinaryDump
Field Summary | |
---|---|
static java.lang.String |
EOL
|
Constructor Summary | |
---|---|
BinaryDump()
|
Method Summary | |
---|---|
static java.lang.String |
dump(byte[] data,
long offset,
int index)
dump an array of bytes to a String |
static java.lang.String |
toHex(byte value)
Converts the parameter to a hex value. |
static java.lang.String |
toHex(byte[] value)
Dumps the byte array in hexadecimal format. |
static java.lang.String |
toHex(byte[] value,
int bytesPerLine)
Converts the parameter to a hex value breaking the results into lines. |
static java.lang.String |
toHex(byte[] value,
int offset,
int length)
dump an array of bytes to a String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EOL
Constructor Detail |
---|
public BinaryDump()
Method Detail |
---|
public static java.lang.String dump(byte[] data, long offset, int index)
data
- the byte array to be dumpedoffset
- its offset, whatever that might meanindex
- initial index into the byte array
java.lang.ArrayIndexOutOfBoundsException
- if the index is
outside the data array's boundspublic static java.lang.String toHex(byte[] value)
value
- The value to convert
public static java.lang.String toHex(byte[] value, int offset, int length)
data
- the byte array to be dumpedoffset
- its offset, whatever that might meanindex
- initial index into the byte array
java.lang.ArrayIndexOutOfBoundsException
- if the index is
outside the data array's boundspublic static java.lang.String toHex(byte[] value, int bytesPerLine)
value
- The value to convertbytesPerLine
- The maximum number of bytes per line. The next byte
will be written to a new line
public static java.lang.String toHex(byte value)
value
- The value to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |