|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.System
public final class System
System utilities.
Field Summary | |
---|---|
static PrintStream |
err
|
static PrintStream |
out
|
static int |
VM_TYPECHECKS
|
Method Summary | |
---|---|
static void |
arraycopy(Object src,
int srcOffset,
Object dest,
int destOffset,
int length)
Copies one array to another. |
static void |
boot()
Boot into firmware update mode. |
static long |
currentTimeMillis()
Current time expressed in milliseconds. |
static int |
diagn(int code,
int param)
Diagnostic tool (for firmware developers only) |
static void |
enableRunTimeTypeChecks(boolean on)
Enable/Disable strict run time type checking for some operations within the Virtual Machine. |
static void |
exit(int code)
Terminate the application. |
static void |
gc()
Collect garbage |
static int |
getFirmwareMajorVersion()
|
static int |
getFirmwareMinorVersion()
|
static int |
getFirmwareRevision()
|
static int |
getProgramExecutionsCount()
Get the number of times a Java program (including the menu) has executed since the brick was swiched on |
static Runtime |
getRuntime()
Get the singleton instance of Runtime. |
static int |
getVMOptions()
Return the currently operating Virtual Machine options. |
static int |
identityHashCode(Object obj)
|
static void |
setErr(PrintStream err)
Redirect System.err |
static void |
setOut(PrintStream out)
Redirect System.out |
static void |
setVMOptions(int options)
Control the run time operation of the leJOS Virtual Machine. |
static void |
shutDown()
Shutdown the brick |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int VM_TYPECHECKS
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 Runtime getRuntime()
public static int identityHashCode(Object obj)
public static void gc()
public static void shutDown()
public static void boot()
public static int diagn(int code, int param)
public static void setOut(PrintStream out)
out
- a PrintStreampublic static void setErr(PrintStream err)
err
- a PrintStreampublic static int getProgramExecutionsCount()
public static int getFirmwareMajorVersion()
public static int getFirmwareMinorVersion()
public static int getFirmwareRevision()
public static void setVMOptions(int options)
options
- Bit flags.public static int getVMOptions()
public static void enableRunTimeTypeChecks(boolean on)
on
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |