equal
deleted
inserted
replaced
123 "f.txt"); |
123 "f.txt"); |
124 f.createNewFile(); |
124 f.createNewFile(); |
125 f.deleteOnExit(); |
125 f.deleteOnExit(); |
126 |
126 |
127 FileInputStream fis = new FileInputStream(f); |
127 FileInputStream fis = new FileInputStream(f); |
128 if (testInputStream(fis)) { |
128 try { |
129 failed = true; |
129 if (testInputStream(fis)) { |
130 } |
130 failed = true; |
131 if (testFileInputStream(fis)) { |
131 } |
132 failed = true; |
132 if (testFileInputStream(fis)) { |
|
133 failed = true; |
|
134 } |
|
135 } finally { |
|
136 fis.close(); |
133 } |
137 } |
134 |
138 |
135 BufferedInputStream bs = new BufferedInputStream( |
139 BufferedInputStream bs = new BufferedInputStream( |
136 new FileInputStream(f)); |
140 new FileInputStream(f)); |
137 if (testInputStream(bs)) { |
141 try { |
138 failed = true; |
142 if (testInputStream(bs)) { |
|
143 failed = true; |
|
144 } |
|
145 } finally { |
|
146 bs.close(); |
139 } |
147 } |
140 |
148 |
141 DataInputStream dis = new DataInputStream( |
149 DataInputStream dis = new DataInputStream( |
142 new FileInputStream(f)); |
150 new FileInputStream(f)); |
143 if (testInputStream(dis)) { |
151 try { |
144 failed = true; |
152 if (testInputStream(dis)) { |
|
153 failed = true; |
|
154 } |
|
155 } finally { |
|
156 dis.close(); |
145 } |
157 } |
146 |
158 |
147 PushbackInputStream pbis = new PushbackInputStream( |
159 PushbackInputStream pbis = new PushbackInputStream( |
148 new ByteArrayInputStream(new byte[20])); |
160 new ByteArrayInputStream(new byte[20])); |
149 if (testInputStream(pbis)) { |
161 if (testInputStream(pbis)) { |