package java.lang; import java.io.PrintStream; import java.io.InputStream; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileDescriptor; public abstract class System { static { loadLibrary("natives"); } public static final PrintStream out = new PrintStream (new BufferedOutputStream(new FileOutputStream(FileDescriptor.out)), true); public static final PrintStream err = new PrintStream (new BufferedOutputStream(new FileOutputStream(FileDescriptor.err)), true); public static final InputStream in = new BufferedInputStream(new FileInputStream(FileDescriptor.in)); public static native void arraycopy(Object src, int srcOffset, Object dst, int dstOffset, int length); public static native String getProperty(String name); public static native long currentTimeMillis(); public static void loadLibrary(String name) { Runtime.getRuntime().loadLibrary(name); } public static void gc() { Runtime.getRuntime().gc(); } public static void exit(int code) { Runtime.getRuntime().exit(code); } }