/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This source file is part of SableVM classlib-stubs. * * * * See the file "LICENSE" for the copyright information and for * * the terms and conditions for copying, distribution and * * modification of this source file. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ package java.lang; import java.io.IOException; import java.io.InputStream; import java.io.PrintStream; import java.nio.channels.Channel; import java.util.Map; import java.util.Properties; public final class System extends Object { public static final InputStream in; public static final PrintStream out; public static final PrintStream err; native public static void setIn(InputStream in); native public static void setOut(PrintStream out); native public static void setErr(PrintStream err); native public static Channel inheritedChannel() throws IOException; native public static void setSecurityManager(SecurityManager s); native public static SecurityManager getSecurityManager(); native public static long currentTimeMillis(); native public static long nanoTime(); native public static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length); native public static int identityHashCode(Object x); native public static Properties getProperties(); native public static void setProperties(Properties props); native public static String getProperty(String key); native public static String getProperty(String key, String def); native public static String setProperty(String key, String value); native public static String clearProperty(String key); native public static String getenv(String name); native public static Map getenv(); native public static void exit(int status); native public static void gc(); native public static void runFinalization(); @Deprecated native public static void runFinalizersOnExit(boolean value); native public static void load(String filename); native public static void loadLibrary(String libname); native public static String mapLibraryName(String libname); static { in = null; out = null; err = null; } private System() { } }