|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.toolkit.Process
General-purpose utility class grouping various tools concerning processes, threads and VM.
Method Summary | |
static void |
appendClassPath(java.lang.String classPath)
Deprecated. |
static java.lang.String[] |
currentCallStack()
Gets the current call stack. |
static void |
exit()
|
static void |
exit(int exitCode)
|
static java.io.File |
getBaseDirectory(java.io.File directory,
java.lang.Package aPackage)
|
static java.io.File |
getBaseJarArchive(java.net.URL url)
|
static java.io.File |
getClassDirectory(java.lang.Class clazz)
|
static java.net.URL |
getClassUrl(java.lang.Class clazz)
|
static java.net.URL |
getClassUrl(java.lang.Class clazz,
char separatorChar)
|
static java.lang.reflect.Constructor |
getConstructor(java.lang.Class target,
java.lang.Class[] args)
Finds out a suitable constructor inside specified class that accepts specified arguments types. |
static java.lang.Thread[] |
getCurrentThreads()
Gets the list of all active threads. |
static java.lang.String |
getDefaultTemporary()
Deprecated. |
static java.io.File |
getJarSourceArchive(java.lang.Class clazz)
|
static void |
haltIfRequired()
|
static void |
interrupt()
|
static void |
restart()
|
static void |
suspend()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void suspend()
public static void interrupt()
public static void restart()
public static void haltIfRequired() throws java.lang.InterruptedException
java.lang.InterruptedException
public static java.lang.String[] currentCallStack()
public static java.lang.Thread[] getCurrentThreads()
public static java.io.File getJarSourceArchive(java.lang.Class clazz)
public static java.io.File getClassDirectory(java.lang.Class clazz)
public static java.io.File getBaseDirectory(java.io.File directory, java.lang.Package aPackage)
public static java.io.File getBaseJarArchive(java.net.URL url)
public static java.net.URL getClassUrl(java.lang.Class clazz)
public static java.net.URL getClassUrl(java.lang.Class clazz, char separatorChar)
public static java.lang.String getDefaultTemporary()
public static void appendClassPath(java.lang.String classPath)
public static void exit()
public static void exit(int exitCode)
public static java.lang.reflect.Constructor getConstructor(java.lang.Class target, java.lang.Class[] args) throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |