corda/classpath/java/lang/System.java

44 lines
1.2 KiB
Java
Raw Normal View History

2007-06-25 01:34:07 +00:00
package java.lang;
2007-07-25 00:34:45 +00:00
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;
2007-06-25 01:34:07 +00:00
2007-07-25 00:34:45 +00:00
public abstract class System {
2007-06-25 01:34:07 +00:00
static {
loadLibrary("natives");
}
2007-07-25 00:34:45 +00:00
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));
2007-07-07 23:47:35 +00:00
public static native void arraycopy(Object src, int srcOffset, Object dst,
int dstOffset, int length);
public static native String getProperty(String name);
2007-07-22 19:06:21 +00:00
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);
}
2007-06-25 01:34:07 +00:00
}