public class NSUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
os_aix |
static java.lang.String |
os_hpux |
static java.lang.String |
os_linux |
static java.lang.String |
os_netware |
static java.lang.String |
os_solaris |
static java.lang.String |
os_unknown |
static java.lang.String |
os_windows |
| Constructor and Description |
|---|
NSUtil() |
| Modifier and Type | Method and Description |
|---|---|
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 java.lang.String |
getPlatform()
Get a string representing the platform name
|
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.
|
public static final java.lang.String os_unknown
public static final java.lang.String os_aix
public static final java.lang.String os_hpux
public static final java.lang.String os_linux
public static final java.lang.String os_netware
public static final java.lang.String os_solaris
public static final java.lang.String os_windows
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 java.lang.String toHexString(byte[] bytes)
bytes - The byte array.public static int byteToDecimal(byte b)
b - The byte to convert.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 byte[] reverseBytes(byte[] bytes)
bytes - The byte array to reverse.public static java.lang.String getPlatform()
public static void main(java.lang.String[] st)
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.