public final class System extends Object
System
|
|
---|---|
|
|
|
|
|
|
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static final InputStream in
public static final PrintStream out
System.out.println(data)
PrintStream.println()
PrintStream.println(boolean)
PrintStream.println(char)
PrintStream.println(char[])
PrintStream.println(double)
PrintStream.println(float)
PrintStream.println(int)
PrintStream.println(long)
PrintStream.println(java.lang.Object)
PrintStream.println(java.lang.String)
public static final PrintStream err
public static void setIn( InputStream in)
in
SecurityException
checkPermission
SecurityManager.checkPermission(java.security. Permission)
RuntimePermission
public static void setOut( PrintStream out)
out
SecurityException
checkPermission
SecurityManager.checkPermission(java.security. Permission)
RuntimePermission
public static void setErr( PrintStream err)
err
SecurityException
checkPermission
SecurityManager.checkPermission(java.security. Permission)
RuntimePermission
public static Console console()
public static Channel inheritedChannel() throws IOException
IOException
SecurityException
public static void setSecurityManager( SecurityManager s)
s
SecurityException
checkPermission
getSecurityManager()
SecurityManager.checkPermission(java.security. Permission)
RuntimePermission
public static SecurityManager getSecurityManager()
null
setSecurityManager(java.lang.SecurityManager)
public static long currentTimeMillis()
Date
public static long nanoTime()
long startTime = System.nanoTime(); // ... the code being measured ... long estimatedTime = System.nanoTime() - startTime;
long t0 = System.nanoTime(); ... long t1 = System.nanoTime();
t1 - t0 < 0
t1 < t0
public static void arraycopy( Object src, int srcPos, Object dest, int destPos, int length)
src
dest
length
srcPos
srcPos+length-1
destPos
destPos+length-1
src
dest
src
dest
src
dest
src
dest
srcPos
destPos
length
srcPos+length
src.length
destPos+length
dest.length
src
srcPos
dest
destPos
length
IndexOutOfBoundsException
ArrayStoreException
src
dest
NullPointerException
src
dest
null
public static int identityHashCode( Object x)
x
public static Properties getProperties()
|
|
---|---|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SecurityException
checkPropertiesAccess
setProperties(java.util. Properties)
SecurityException
SecurityManager.checkPropertiesAccess()
Properties
public static String lineSeparator()
line.separator
public static void setProperties( Properties props)
Properties
props
SecurityException
checkPropertiesAccess
getProperties()
Properties
SecurityException
SecurityManager.checkPropertiesAccess()
public static String getProperty( String key)
key
null
SecurityException
checkPropertyAccess
NullPointerException
key
null
IllegalArgumentException
key
setProperty(java.lang.String, java.lang.String)
SecurityException
SecurityManager.checkPropertyAccess(java.lang.String)
getProperties()
public static String getProperty( String key, String def)
key
def
SecurityException
checkPropertyAccess
NullPointerException
key
null
IllegalArgumentException
key
setProperty(java.lang.String, java.lang.String)
SecurityManager.checkPropertyAccess(java.lang.String)
getProperties()
public static String setProperty( String key, String value)
key
value
null
SecurityException
checkPermission
NullPointerException
key
value
null
IllegalArgumentException
key
getProperty(java.lang.String)
getProperty(java.lang.String)
getProperty(java.lang.String, java.lang.String)
PropertyPermission
SecurityManager.checkPermission(java.security. Permission)
public static String clearProperty( String key)
key
null
SecurityException
checkPropertyAccess
NullPointerException
key
null
IllegalArgumentException
key
getProperty(java.lang.String)
setProperty(java.lang.String, java.lang.String)
Properties
SecurityException
SecurityManager.checkPropertiesAccess()
public static String getenv( String name)
name
null
NullPointerException
name
null
SecurityException
checkPermission
name
getenv()
ProcessBuilder.environment()
public static Map < String , String > getenv()
SecurityException
checkPermission
getenv(String)
ProcessBuilder.environment()
public static void exit(int status)
Runtime.getRuntime().exit(n)
status
SecurityException
checkExit
Runtime.exit(int)
public static void gc()
Runtime.getRuntime().gc()
Runtime.gc()
public static void runFinalization()
Runtime.getRuntime().runFinalization()
Runtime.runFinalization()
@Deprecated public static void runFinalizersOnExit(boolean value)
value
SecurityException
checkExit
Runtime.exit(int)
Runtime.gc()
SecurityManager.checkExit(int)
public static void load( String filename)
Runtime.getRuntime().load(name)
filename
SecurityException
checkLink
UnsatisfiedLinkError
NullPointerException
filename
null
Runtime.load(java.lang.String)
SecurityManager.checkLink(java.lang.String)
public static void loadLibrary( String libname)
libname
Runtime.getRuntime().loadLibrary(name)
libname
SecurityException
checkLink
UnsatisfiedLinkError
NullPointerException
libname
null
Runtime.loadLibrary(java.lang.String)
SecurityManager.checkLink(java.lang.String)
public static String mapLibraryName( String libname)
libname
NullPointerException
libname
null
loadLibrary(java.lang.String)
ClassLoader.findLibrary(java.lang.String)