|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.openmms.util.Convert
Title: Convert
Description: String, bytes and hex converting operations
Copyright: Copyright (c) 2003 OpenMMS.org
| Constructor Summary | |
Convert()
|
|
| Method Summary | |
static java.lang.String |
bytesToHex(byte[] inBytes)
Converts a byte array to a hex string. |
static java.lang.String |
bytesToString(byte[] inBytes)
Converts a text byte array to a text string. |
static java.lang.String |
charToHex(char[] inBytes)
Converts a char array to a hex string. |
static java.lang.String |
hexToTxtString(java.lang.String s)
Converts a hex string to a text string. |
static java.lang.String |
intToHex(int nValue)
Converts an int to hex string. |
static java.lang.String |
longToHex(long nValue)
Converts an int to hex string. |
static byte[] |
txtStringToBytes(java.lang.String sInString)
Converts a text string to a byte array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Convert()
| Method Detail |
public static byte[] txtStringToBytes(java.lang.String sInString)
sInString -
public static java.lang.String hexToTxtString(java.lang.String s)
s -
public static java.lang.String bytesToString(byte[] inBytes)
inBytes -
public static java.lang.String bytesToHex(byte[] inBytes)
inBytes -
public static java.lang.String charToHex(char[] inBytes)
inBytes -
public static java.lang.String intToHex(int nValue)
nValue - value to convert
public static java.lang.String longToHex(long nValue)
nValue - value to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||