add native copy method
[IRC.git] / Robust / src / ClassLibrary / System.java
1 public class System {
2   public static void printInt(int x) {
3     String s=String.valueOf(x);
4     printString(s);
5   }
6
7   public static native long currentTimeMillis();
8
9   public static native void printString(String s);
10
11   public static void println(String s) {
12     System.printString(s+"\n");
13   }
14
15   public static void println(Object o) {
16     System.printString(""+o+"\n");
17   }
18
19   public static void println(int o) {
20     System.printString(""+o+"\n");
21   }
22
23   public static void println(double o) {
24     System.printString(""+o+"\n");
25   }
26
27   public static void print(String s) {
28     System.printString(s);
29   }
30
31   public static void print(Object o) {
32     System.printString(""+o);
33   }
34
35   public static void print(int o) {
36     System.printString(""+o);
37   }
38
39   public static void print(double o) {
40     System.printString(""+o);
41   }
42
43   public static void error() {
44     System.printString("Error (Use Breakpoint on ___System______error method for more information!)\n");
45   }
46
47   public static native void exit(int status);
48
49   public static native void printI(int status);
50
51   public static native void clearPrefetchCache();
52
53   public static native void rangePrefetch(Object o, short[] offsets);
54
55   public static native void deepArrayCopy(Object dst, Object src);
56
57 }