|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amx.duet.tools.text.HexUtil
A utility class for converting String hex values to integers and integer to String hex values.
Constructor Summary | |
HexUtil()
|
Method Summary | |
static char |
HEXTOA(byte cZa,
byte cZb)
Changes two ascii bytes into one ascii character. |
static int |
HEXTOI(byte cZa,
byte cZb)
Changes two ascii bytes into one integer value. |
static int |
HEXTOI(char cZa,
char cZb)
Changes two ascii chars into one integer value. |
static int |
hextoi(java.lang.String hex)
Converts an ASCII string containing the hexadecimal representation of a number to an integer. |
static int |
hextoi(java.lang.String hex,
boolean big)
|
static java.lang.String |
itohex(int value)
Converts an integer to an ASCII string containing the hexadecimal representation of the number. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HexUtil()
Method Detail |
public static final int hextoi(java.lang.String hex)
public static final int hextoi(java.lang.String hex, boolean big)
public static final java.lang.String itohex(int value)
value
- integer to be converted to a hexadecimal string.
public static int HEXTOI(byte cZa, byte cZb)
cZa
- [0x30..0x39,0x41..0x46]cZb
- [0x30..0x39,0x41..0x46]
public static int HEXTOI(char cZa, char cZb)
cZa
- ['0'..'9','A'..'F']cZb
- ['0'..'9','A'..'F']
public static char HEXTOA(byte cZa, byte cZb)
cZa
- cZb
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |