mirror of
https://github.com/corda/corda.git
synced 2025-01-01 10:46:46 +00:00
39 lines
883 B
Java
39 lines
883 B
Java
package java.lang;
|
|
|
|
public abstract class System {
|
|
public static final Output out = new Output();
|
|
public static final Output err = out;
|
|
|
|
static {
|
|
loadLibrary("natives");
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
public static class Output {
|
|
public synchronized native void print(String s);
|
|
|
|
public synchronized void println(String s) {
|
|
print(s);
|
|
print(getProperty("line.separator"));
|
|
}
|
|
}
|
|
}
|