|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.admin.ns.NSUtil
This is a Util class with static helper functions.
| Constructor Summary | |
NSUtil()
|
|
| Method Summary | |
static int |
byteToDecimal(byte b)
Converts a byte to its positive decimal value. |
static void |
copyIntoArray(java.util.Hashtable hashtable,
java.lang.Object[] anArray)
Copies the contents of a hash table into an array. |
static byte[] |
hexStringToByteArray(java.lang.String str)
Converts a string to a byte array. |
static void |
main(java.lang.String[] st)
|
static byte[] |
reverseBytes(byte[] bytes)
Reverses a byte array. |
static java.lang.String |
toHexString(byte[] bytes)
Converts a byte array to a hex string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NSUtil()
| Method Detail |
public static int byteToDecimal(byte b)
b - The byte to convert.
public static void copyIntoArray(java.util.Hashtable hashtable,
java.lang.Object[] anArray)
hashtable - The hash table of source objects.anArray - The destination array.
public static byte[] hexStringToByteArray(java.lang.String str)
throws java.lang.NumberFormatException
The string is parsed so that each character represents a single nibble in the byte array. Valid characters are [0-9a-fA-F].
str - The string which being parsed.
java.lang.NumberFormatExceptionpublic static void main(java.lang.String[] st)
public static byte[] reverseBytes(byte[] bytes)
bytes - The byte array to reverse.
public static java.lang.String toHexString(byte[] bytes)
bytes - The byte array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||