Closes the ZipFile. This also closes all input streams given by this class. After this is called, no further method should be called. @exception IOException if a i/o error occured.
()
| 299 | * @exception IOException if a i/o error occured. |
| 300 | */ |
| 301 | public void close() throws IOException |
| 302 | { |
| 303 | RandomReadingFile rrf = this.rrf; |
| 304 | if (rrf == null) |
| 305 | return; |
| 306 | |
| 307 | synchronized (rrf) |
| 308 | { |
| 309 | closed = true; |
| 310 | entries = null; |
| 311 | rrf.close(); |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | /** |
| 316 | * Calls the <code>close()</code> method when this ZipFile has not yet |