|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elib.util.HexStringUtils
Untamed:
Constructor Summary | |
HexStringUtils()
Enabled: |
Method Summary | |
static String |
bytesToReadableHexStr(byte[] msg)
Enabled: Convert a byte array to a formated hex string suitable for printing. |
static String |
bytesToReadableHexStr(byte[] msg,
int off,
int len)
Enabled: Convert a byte array to a formated hex string suitable for printing. |
static byte[] |
hexStrToBytes(String s)
Enabled: |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HexStringUtils()
Method Detail |
public static String bytesToReadableHexStr(byte[] msg)
The output is divided into lines. Each line has a 4 character hex offset in string, followed by the hex representation of 16 bytes of the input, grouped into 8 hex character groups, followed by an ascii interpretion of the 16 bytes.
msg
- The hex string.public static String bytesToReadableHexStr(byte[] msg, int off, int len)
The output is divided into lines. Each line has a 4 character hex offset in string, followed by the hex representation of 16 bytes of the input, grouped into 8 hex character groups, followed by an ascii interpretion of the 16 bytes.
msg
- The hex string.off
- the offset in msg to start converting. The offsets included
in the output will start with 0000 regardless of the value of off.
¶m len the number of bytes to convert.public static byte[] hexStrToBytes(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |