System class

System class contains system-level useful class fields and methods. System class cannot be instantiated.

Standard Stream

TypeFieldSummary
static PrintStreamerrThe "standard" error output stream.
static InputStreaminThe "standard" input stream.
static PrintStreamoutThe "standard" output stream.

ReturnMethodSummary
static voidarraycopy(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.

ReturnMethodSummary
static StringclearProperty(String key)Removes the system property.
static Stringgetenv(String name)Gets the value of the environment variable.
static PropertiesgetProperties()Determines the current system properties.
static StringgetProperty(String key)Gets the system property indicated.
static StringgetProperty(String key, String def)Gets the system property.
static voidsetProperties(Properties props)Sets the system properties to the Properties argument.
static StringsetProperty(String key, String value)Sets the system property.

ReturnMethodSummary
static Map<String,String>getenv()Returns an string map of the system environment.

ReturnMethodSummary
static voidload(String filename)Loads a code file with the filename as a dynamic library.
static voidloadLibrary(String libname)Loads the system library by the libname argument.
static StringmapLibraryName(String libname)Maps a library name into a platform-specific string.

ReturnMethodSummary
static voidsetErr(PrintStream err)Reassigns the "standard" error output stream.
static voidsetIn(InputStream in)Reassigns the "standard" input stream.
static voidsetOut(PrintStream out)Reassigns the "standard" output stream.

ReturnMethodSummary
static longnanoTime()Returns the current system time in nanoseconds.
static longcurrentTimeMillis()Returns the current time in milliseconds.

ReturnMethodSummary
static Consoleconsole()Returns the Console object.
static voidexit(int status)Terminates the Java Virtual Machine.
static voidgc()Runs the garbage collector.

ReturnMethodSummary
static SecurityManagergetSecurityManager()Gets the system security interface.
static voidsetSecurityManager(SecurityManager s)Sets the System security.

ReturnMethodSummary
static intidentityHashCode(Object x)Returns the same hash code for the given object as would be returned by the default method hashCode().
static ChannelinheritedChannel()Returns the channel inherited from the entity that created this Java virtual machine.
static voidrunFinalization()Runs the finalization methods of any objects pending finalization.
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.