* java/util/zip/ZipFile.java (finalize): New method.
From-SVN: r63218
This commit is contained in:
committed by
Mark Wielaard
parent
9dca2ad510
commit
fefabda543
@@ -304,6 +304,15 @@ public class ZipFile implements ZipConstants
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the <code>close()</code> method when this ZipFile has not yet
|
||||
* been explicitly closed.
|
||||
*/
|
||||
protected void finalize() throws IOException
|
||||
{
|
||||
if (!closed) close();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an enumeration of all Zip entries in this Zip file.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user