()
| 28 | private static Tester[] tests = { |
| 29 | new Tester("Stream Write") { |
| 30 | @Override public void test() { |
| 31 | try( |
| 32 | DataOutputStream dos = |
| 33 | new DataOutputStream( |
| 34 | new BufferedOutputStream( |
| 35 | new FileOutputStream( |
| 36 | new File("temp.tmp")))) |
| 37 | ) { |
| 38 | for(int i = 0; i < numOfInts; i++) |
| 39 | dos.writeInt(i); |
| 40 | } catch(IOException e) { |
| 41 | throw new RuntimeException(e); |
| 42 | } |
| 43 | } |
| 44 | }, |
| 45 | new Tester("Mapped Write") { |
| 46 | @Override public void test() { |