diff options
author | jfrijters <jfrijters> | 2012-07-07 11:48:24 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2012-07-07 11:48:24 +0400 |
commit | eeba629e3fef1f9d2f54060abf932c8914334f5b (patch) | |
tree | 9de9b5bc8a595e26c73e69afa2076bacf4034b73 /openjdk/java | |
parent | 000d896e9345b82bff56e6201f690a21e96be2cf (diff) |
Add ZipFile constructor that was added in Java 7.
Diffstat (limited to 'openjdk/java')
-rw-r--r-- | openjdk/java/util/zip/ZipFile.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/openjdk/java/util/zip/ZipFile.java b/openjdk/java/util/zip/ZipFile.java index 03f0b799..db4b5cf2 100644 --- a/openjdk/java/util/zip/ZipFile.java +++ b/openjdk/java/util/zip/ZipFile.java @@ -130,6 +130,17 @@ public class ZipFile implements ZipConstants, Closeable } /** + * Opens a Zip file reading the given File. + * @exception IOException if a i/o error occured. + * @exception ZipException if the file doesn't contain a valid zip + * archive. + */ + public ZipFile(String name, Charset charset) throws IOException + { + this(new File(name), OPEN_READ, charset); + } + + /** * Opens a Zip file reading the given File in the given mode. * * If the OPEN_DELETE mode is specified, the zip file will be deleted at |