|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.arjuna.ats.arjuna.utils.Utility
Various useful functions that we wrap in a single class. Some of these functions are needed simply for backwards compatibility with older versions of Java.
Constructor Summary | |
Utility()
|
Method Summary | |
static Process |
getDefaultProcess()
|
static int |
getpid()
|
static Uid |
getProcessUid()
|
static int |
hexStringToInt(java.lang.String s)
Convert a hex String to an integer. |
static long |
hexStringToLong(java.lang.String s)
Convert a hex String to a long. |
static int |
hostInetAddr()
|
static java.lang.String |
intToHexString(int number)
Convert integer to hex String. |
static boolean |
isWindows()
|
static java.lang.String |
longToHexString(long number)
Convert a long to a hex String. |
static void |
setProcess(Process p)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Utility()
Method Detail |
public static java.lang.String intToHexString(int number) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static int hexStringToInt(java.lang.String s) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static java.lang.String longToHexString(long number) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static long hexStringToLong(java.lang.String s) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static int hostInetAddr() throws java.net.UnknownHostException
java.net.UnknownHostException
public static final int getpid()
public static final Uid getProcessUid()
public static final boolean isWindows()
public static final void setProcess(Process p)
public static final Process getDefaultProcess()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |