API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang. System View Source
Author(s)
unascribed
Since
JDK1.0
Version
1.158, 03/13/06
Serial
Hierarchy
 Object
      System
Implements
Subclasses
Description
publicfinal class System
  The System class contains several useful class fields and methods.
See also:   
Constructors
private System ()
Don't let anyone instantiate this class
Methods
Hide/Show inherited methods
publicstaticnative 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.
publicstatic String clearProperty (String key)
  Removes the system property indicated by the specified key.
publicstatic Console console ()
  Returns the unique Console object associated with the current Java virtual machine, if any.
publicstaticnative long currentTimeMillis ()
  Returns the current time in milliseconds.
publicstatic void exit (int status)
  Terminates the currently running Java Virtual Machine.
publicstatic void gc ()
  Runs the garbage collector.
pack-privatestatic Class getCallerClass ()
publicstatic Map<String, String> getenv ()
  Returns an unmodifiable string map view of the current system environment.
publicstatic String getenv (String name)
  Gets the value of the specified environment variable.
publicstatic Properties getProperties ()
  Determines the current system properties.
publicstatic String getProperty (String key)
  Gets the system property indicated by the specified key.
publicstatic String getProperty (String key, String def)
  Gets the system property indicated by the specified key.
publicstatic SecurityManager getSecurityManager ()
  Gets the system security interface.
publicstaticnative int identityHashCode (Object x)
  Returns the same hash code for the given object as would be returned by the default method hashCode(), whether or not the given object's class overrides hashCode().
publicstatic Channel inheritedChannel () throws IOException
  Returns the channel inherited from the entity that created this Java virtual machine.
publicstatic void load (String filename)
  Loads a code file with the specified filename from the local file system as a dynamic library.
publicstatic void loadLibrary (String libname)
  Loads the system library specified by the libname argument.
publicstaticnative String mapLibraryName (String libname)
  Maps a library name into a platform-specific string representing a native library.
publicstaticnative long nanoTime ()
  Returns the current value of the most precise available system timer, in nanoseconds.
publicstatic void runFinalization ()
  Runs the finalization methods of any objects pending finalization.
@Deprecated
publicstatic void runFinalizersOnExit (boolean value)
  Enable or disable finalization on exit; doing so specifies that the finalizers of all objects that have finalizers that have not yet been automatically invoked are to be run before the Java runtime exits.
publicstatic void setErr (PrintStream err)
  Reassigns the "standard" error output stream.
publicstatic void setIn (InputStream in)
  Reassigns the "standard" input stream.
publicstatic void setOut (PrintStream out)
  Reassigns the "standard" output stream.
publicstatic void setProperties (Properties props)
  Sets the system properties to the Properties argument.
publicstatic String setProperty (String key, String value)
  Sets the system property indicated by the specified key.
publicstatic void setSecurityManager (SecurityManager s)
  Sets the System security.
Fields
Hide/Show inherited fields
publicfinalstatic PrintStream err
  The "standard" error output stream.
publicfinalstatic InputStream in
  The "standard" input stream.
publicfinalstatic PrintStream out
  The "standard" output stream.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar