jdk/test/java/io/InputStream/ReadParams.java
changeset 5810 e83d67ad8c96
parent 5506 202f599c92aa
child 7668 d4a77089c587
equal deleted inserted replaced
5809:6e38efd0293f 5810:e83d67ad8c96
   135         FileOutputStream fos = new FileOutputStream(fn);
   135         FileOutputStream fos = new FileOutputStream(fn);
   136         ObjectOutputStream oos = new ObjectOutputStream(fos);
   136         ObjectOutputStream oos = new ObjectOutputStream(fos);
   137         oos.writeInt(12345);
   137         oos.writeInt(12345);
   138         oos.writeObject("Today");
   138         oos.writeObject("Today");
   139         oos.writeObject(new Integer(32));
   139         oos.writeObject(new Integer(32));
       
   140         oos.close();
   140         ObjectInputStream ois = new ObjectInputStream(new FileInputStream(fn));
   141         ObjectInputStream ois = new ObjectInputStream(new FileInputStream(fn));
   141         doTest(ois);
   142         doTest(ois);
   142         doTest1(ois);
   143         doTest1(ois);
   143         ois.close();
   144         ois.close();
   144 
   145