2007-06-24 19:34:07 -06:00
|
|
|
package java.lang;
|
|
|
|
|
|
|
|
public abstract class System {
|
|
|
|
public static final Output out = new Output();
|
2007-07-04 16:27:08 -06:00
|
|
|
public static final Output err = out;
|
2007-06-24 19:34:07 -06:00
|
|
|
|
|
|
|
static {
|
|
|
|
loadLibrary("natives");
|
|
|
|
}
|
|
|
|
|
2007-07-07 17:47:35 -06:00
|
|
|
public static native void arraycopy(Object src, int srcOffset, Object dst,
|
|
|
|
int dstOffset, int length);
|
|
|
|
|
2007-06-24 19:34:07 -06:00
|
|
|
public static native void loadLibrary(String name);
|
|
|
|
|
2007-07-04 16:27:08 -06:00
|
|
|
public static native String getProperty(String name);
|
|
|
|
|
2007-06-24 19:34:07 -06:00
|
|
|
public static class Output {
|
2007-07-07 17:47:35 -06:00
|
|
|
public synchronized native void print(String s);
|
2007-07-04 16:27:08 -06:00
|
|
|
|
2007-07-07 17:47:35 -06:00
|
|
|
public synchronized void println(String s) {
|
2007-07-04 16:27:08 -06:00
|
|
|
print(s);
|
|
|
|
print(getProperty("line.separator"));
|
|
|
|
}
|
2007-06-24 19:34:07 -06:00
|
|
|
}
|
|
|
|
}
|