Creates a new
JarFile
to read from the specified
File
object in the specified mode. The mode argument
must be either
OPEN_READ or
OPEN_READ | OPEN_DELETE.
Parameters:
-
file - the jar file to be opened for reading
-
verify - whether or not to verify the jar file if
it is signed.
-
mode - the mode in which the file is to be opened
Throws:
-
IOException - if an I/O error has occurred
-
IllegalArgumentException - if the
mode argument is invalid
-
SecurityException - if access to the file is denied
by the SecurityManager
Since:
1.3