equal
deleted
inserted
replaced
242 "f.txt"); |
242 "f.txt"); |
243 f.createNewFile(); |
243 f.createNewFile(); |
244 f.deleteOnExit(); |
244 f.deleteOnExit(); |
245 |
245 |
246 FileInputStream fis = new FileInputStream(f); |
246 FileInputStream fis = new FileInputStream(f); |
247 |
247 try { |
248 DataInputStream dis = new DataInputStream( |
248 DataInputStream dis = new DataInputStream( |
249 new FileInputStream(f)); |
249 new FileInputStream(f)); |
250 if (testDataInputStream(dis)) { |
250 try { |
251 failed = true; |
251 if (testDataInputStream(dis)) { |
|
252 failed = true; |
|
253 } |
|
254 } finally { |
|
255 dis.close(); |
|
256 } |
|
257 } finally { |
|
258 fis.close(); |
252 } |
259 } |
253 |
|
254 } |
260 } |
255 |
261 |
256 private static boolean testDataInputStream(DataInputStream is) |
262 private static boolean testDataInputStream(DataInputStream is) |
257 throws Exception { |
263 throws Exception { |
258 is.close(); |
264 is.close(); |