* java/util/zip/ZipFile.java (finalize): New method.
From-SVN: r63218
This commit is contained in:
parent
9dca2ad510
commit
fefabda543
@ -1,3 +1,7 @@
|
||||
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:
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user