|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tribble.text.Hex
Hexadecimal character conversion methods.
Field Summary | |
static byte[] |
DIGIT_VALUE
Hexadecimal digit values (indexed by a hexadecimal digit character). |
static char[] |
HEX_DIGIT
Hexadecimal digit characters. |
Method Summary | |
static java.lang.String |
toHex(int val,
int n)
Convert an unsigned binary integer value into an n-digit hexadecimal digit string. |
static java.lang.String |
toHex(long val,
int n)
Convert an unsigned binary integer value into an n-digit hexadecimal digit string. |
static java.lang.String |
toHex16(long val)
Convert an unsigned long binary integer value into a 16-digit hexadecimal digit string. |
static java.lang.String |
toHex2(int val)
Convert an unsigned binary integer value into a 2-digit hexadecimal digit string. |
static java.lang.String |
toHex4(int val)
Convert an unsigned binary integer value into a 4-digit hexadecimal digit string. |
static java.lang.String |
toHex8(int val)
Convert an unsigned binary integer value into an 8-digit hexadecimal digit string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final char[] HEX_DIGIT
public static final byte[] DIGIT_VALUE
Method Detail |
public static java.lang.String toHex(long val, int n)
val
- An unsigned binary integer value.n
- The number of hexadecimal digits to place into the resulting digit string.
public static java.lang.String toHex(int val, int n)
val
- An unsigned binary integer value.n
- The number of hexadecimal digits to place into the resulting digit string.
public static java.lang.String toHex2(int val)
val
- An unsigned binary integer value.
public static java.lang.String toHex4(int val)
val
- An unsigned binary integer value.
public static java.lang.String toHex8(int val)
val
- An unsigned binary integer value.
public static java.lang.String toHex16(long val)
val
- An unsigned binary integer value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |