Commit fefabda5 by Mark Wielaard Committed by Mark Wielaard

* java/util/zip/ZipFile.java (finalize): New method.

From-SVN: r63218
parent 9dca2ad5
2003-02-21 Mark Wielaard <mark@klomp.org>
* java/util/zip/ZipFile.java (finalize): New method.
2003-02-21 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/natSocketChannelImpl.cc:
......
......@@ -305,6 +305,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.
*/
public Enumeration entries()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment