Add ZipFile constructor that was added in Java 7.

This commit is contained in:
jfrijters 2012-07-07 07:48:24 +00:00
Родитель 000d896e93
Коммит eeba629e3f
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -129,6 +129,17 @@ public class ZipFile implements ZipConstants, Closeable
this(file, OPEN_READ, charset);
}
/**
* 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.
*