|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.System
public final class System
System utilities.
| Field Summary | |
|---|---|
static PrintStream |
err
|
static PrintStream |
out
|
| Method Summary | |
|---|---|
static void |
arraycopy(Object src,
int srcOffset,
Object dest,
int destOffset,
int length)
Copies one array to another. |
static long |
currentTimeMillis()
Current time expressed in milliseconds. |
static void |
exit(int code)
Terminate the application. |
static void |
gc()
Collect garbage |
static String |
getProperty(String name)
Returns null. |
static String |
getProperty(String name,
String def)
Returns def. |
static Runtime |
getRuntime()
Get the singleton instance of Runtime. |
static int |
identityHashCode(Object obj)
|
static long |
nanoTime()
Return the time since system start in nano-seconds |
static void |
setErr(PrintStream err)
Redirect System.err |
static void |
setOut(PrintStream out)
Redirect System.out |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static PrintStream out
public static PrintStream err
| Method Detail |
|---|
public static void arraycopy(Object src,
int srcOffset,
Object dest,
int destOffset,
int length)
public static void exit(int code)
public static long currentTimeMillis()
public static String getProperty(String name)
null. In leJOS, there are no system properties. So this function returns null.
name - name of the system property
null
public static String getProperty(String name,
String def)
def. In leJOS, there are no system properties. So this function returns def.
name - name of the system propertydef - default value that is returns if system property doesn't exist
defpublic static Runtime getRuntime()
public static int identityHashCode(Object obj)
public static void gc()
public static void setOut(PrintStream out)
out - a PrintStreampublic static void setErr(PrintStream err)
err - a PrintStreampublic static long nanoTime()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||