keep a copy of my current dissertation example to investiaget further and another...
[IRC.git] / Robust / src / ClassLibrary / MGC / Scanner.java
1 public class Scanner implements Iterator {\r
2   private FileInputStream source;\r
3   private int currentpos;\r
4   private int isHighbits;\r
5   private int fd;\r
6 \r
7   public Scanner (final String source)  {\r
8     this.source = new FileInputStream(source);\r
9     this.fd = this.source.getfd();\r
10     this.currentpos = 0;\r
11     this.isHighbits = 1;\r
12   }\r
13 \r
14   public void close () {\r
15       this.source.close();\r
16   }\r
17 \r
18   public native double nextDouble ();\r
19 \r
20   public native int nextInt ();\r
21 }\r