|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmapps.commons.util.HexUtil
public class HexUtil
| Constructor Summary | |
|---|---|
HexUtil()
|
|
| Method Summary | |
|---|---|
static byte[] |
toByteArray(java.lang.String hexString)
Converts a string of hex digits into a byte array of those digits |
static byte[] |
toByteArray(java.lang.String hexString,
java.lang.String separators)
Converts a string of hex digits into a byte array of those digits |
static java.lang.String |
toHex(byte b)
Convert byte to Hex String |
static java.lang.String |
toHex(byte[] b)
Convert byte array to Hex String |
static java.lang.String |
toHex(byte[] b,
int off,
int len)
Convert byte array to Hex String |
static java.lang.String |
toHex(int i)
Convert int to Hex String |
static java.lang.String |
toHex(int[] b)
Convert int array to Hex String |
static java.lang.String |
toHex(int[] b,
int off,
int len)
Convert int array to Hex String |
static java.lang.String |
toHex(short i)
Convert short to Hex String |
static java.lang.String |
toHex(short[] b)
Convert short array to Hex String |
static java.lang.String |
toHex(short[] b,
int off,
int len)
Convert short array to Hex String |
static java.lang.String |
toHexFormat(byte[] b)
Convert byte array to Hex format String |
static java.lang.String |
toHexFormat(byte[] b,
int off,
int len)
Convert byte array to Hex format String |
static java.lang.String |
toHexFormat(int[] b)
Convert int array to Hex format String |
static java.lang.String |
toHexFormat(int[] b,
int off,
int len)
Convert int array to Hex format String |
static java.lang.String |
toHexFormat(short[] b)
Convert short array to Hex format String |
static java.lang.String |
toHexFormat(short[] b,
int off,
int len)
Convert short array to Hex format String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HexUtil()
| Method Detail |
|---|
public static byte[] toByteArray(java.lang.String hexString)
hexString - A String with ascii hex digits
public static byte[] toByteArray(java.lang.String hexString,
java.lang.String separators)
hexString - A String with ascii hex digitsseparators - A String containing the separator characters
public static java.lang.String toHex(int i)
i - value to convert
public static java.lang.String toHex(short i)
i - value to convert
public static java.lang.String toHex(byte b)
b - value to convert
public static java.lang.String toHex(byte[] b)
b - value to convert
public static java.lang.String toHex(short[] b)
b - value to convert
public static java.lang.String toHex(int[] b)
b - value to convert
public static java.lang.String toHex(int[] b,
int off,
int len)
b - value to convertoff - offsetlen - length
public static java.lang.String toHex(short[] b,
int off,
int len)
b - value to convertoff - offsetlen - length
public static java.lang.String toHex(byte[] b,
int off,
int len)
b - value to convertoff - offsetlen - length
public static java.lang.String toHexFormat(int[] b)
b - value to convert
public static java.lang.String toHexFormat(short[] b)
b - value to convert
public static java.lang.String toHexFormat(byte[] b)
b - value to convert
public static java.lang.String toHexFormat(byte[] b,
int off,
int len)
b - value to convertoff - offsetlen - length
public static java.lang.String toHexFormat(short[] b,
int off,
int len)
b - value to convertoff - offsetlen - length
public static java.lang.String toHexFormat(int[] b,
int off,
int len)
b - value to convertoff - offsetlen - length
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||