The System class provides access to data and operations of the underlying OS.
Access to system properties, environnement variables and default standard IO streams.
Operation such as the exit method, the garbage collection and the ability to load native library.
Defined in: System.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
jls.lang.System.err
The standard error stream.
|
| <static> |
jls.lang.System.in
The standard input stream.
|
| <static> |
jls.lang.System.out
The standard output stream.
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
jls.lang.System.clearProperty(name)
Removes a specific system property.
|
| <static> |
jls.lang.System.currentTimeMillis()
Returns the current time in milliseconds.
|
| <static> |
jls.lang.System.exit(status)
Terminates the program and returns a value to the OS.
|
| <static> |
jls.lang.System.gc()
Runs the garbage collector.
|
| <static> |
jls.lang.System.getArguments()
Gets the system command-line arguments.
|
| <static> |
jls.lang.System.getenv(name)
Gets a specific environnement property.
|
| <static> |
jls.lang.System.getProperties()
Gets the system properties.
|
| <static> |
jls.lang.System.getProperty(name, def)
Gets a specific system property.
|
| <static> |
jls.lang.System.loadLibrary(name)
Loads a native library compliant with the JLS native engine.
|
| <static> |
jls.lang.System.setProperty(name, value)
Sets a specific system property.
|