System class contains system-level useful class fields and methods. System class cannot be instantiated.
Standard Stream
| Type | Field | Summary |
|---|---|---|
| static PrintStream | err | The "standard" error output stream. |
| static InputStream | in | The "standard" input stream. |
| static PrintStream | out | The "standard" output stream. |
| Return | Method | Summary |
|---|---|---|
| static void | arraycopy(Object src, int srcPos, Object dest, int destPos, int length) | Copies an array from the specified source array, beginning at the specified position, to the specified position of the destination array. |
| Return | Method | Summary |
|---|---|---|
| static String | clearProperty(String key) | Removes the system property. |
| static String | getenv(String name) | Gets the value of the environment variable. |
| static Properties | getProperties() | Determines the current system properties. |
| static String | getProperty(String key) | Gets the system property indicated. |
| static String | getProperty(String key, String def) | Gets the system property. |
| static void | setProperties(Properties props) | Sets the system properties to the Properties argument. |
| static String | setProperty(String key, String value) | Sets the system property. |
| Return | Method | Summary |
|---|---|---|
| static Map<String,String> | getenv() | Returns an string map of the system environment. |
| Return | Method | Summary |
|---|---|---|
| static void | load(String filename) | Loads a code file with the filename as a dynamic library. |
| static void | loadLibrary(String libname) | Loads the system library by the libname argument. |
| static String | mapLibraryName(String libname) | Maps a library name into a platform-specific string. |
| Return | Method | Summary |
|---|---|---|
| static void | setErr(PrintStream err) | Reassigns the "standard" error output stream. |
| static void | setIn(InputStream in) | Reassigns the "standard" input stream. |
| static void | setOut(PrintStream out) | Reassigns the "standard" output stream. |
| Return | Method | Summary |
|---|---|---|
| static long | nanoTime() | Returns the current system time in nanoseconds. |
| static long | currentTimeMillis() | Returns the current time in milliseconds. |
| Return | Method | Summary |
|---|---|---|
| static Console | console() | Returns the Console object. |
| static void | exit(int status) | Terminates the Java Virtual Machine. |
| static void | gc() | Runs the garbage collector. |
| Return | Method | Summary |
|---|---|---|
| static SecurityManager | getSecurityManager() | Gets the system security interface. |
| static void | setSecurityManager(SecurityManager s) | Sets the System security. |
| Return | Method | Summary |
|---|---|---|
| static int | identityHashCode(Object x) | Returns the same hash code for the given object as would be returned by the default method hashCode(). |
| static Channel | inheritedChannel() | Returns the channel inherited from the entity that created this Java virtual machine. |
| static void | runFinalization() | Runs the finalization methods of any objects pending finalization. |
| w___w__w__._j___ava__2___s__.co___m___ | Contact Us |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |