|
EAF 7.4 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.util.HexEncoder
public class HexEncoder
Various conversion methods. These methods are mostly used to convert internal java data fields into byte arrays or strings for use in 8 bit ASCII fields.
Constructor Summary | |
---|---|
HexEncoder()
|
Method Summary | |
---|---|
static java.lang.String |
toHexString(byte[] bytes)
Converts an arbitrary array of bytes to ASCII hexadecimal string form, with two hex characters corresponding to each byte. |
static java.lang.String |
toHexString(long value,
int len,
char pad)
Converts a long integer to an unsigned hexadecimal String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HexEncoder()
Method Detail |
---|
public static final java.lang.String toHexString(long value, int len, char pad)
value
- The long integer to convert to a hexadecimal string.len
- The total padded length of the string. If the number
is larger than the padded length, then this length
of the string will be the length of the number.pad
- The character to use for padding.
public static final java.lang.String toHexString(byte[] bytes)
bytes
- The array of bytes to convert to ASCII hex form.
|
EAF 7.4 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |