| |
|
| java.lang.Object java.util.zip.ZipFile java.util.jar.JarFile
Constructor Summary | |
public | JarFile(File file) Create a new JarFile using the contents of file. | public | JarFile(File file, boolean verify) Create a new JarFile using the contents of file. | public | JarFile(File file, boolean verify, int mode) Create a new JarFile using the contents of file. | public | JarFile(String filename) Create a new JarFile from the contents of the file specified by filename. | public | JarFile(String filename, boolean verify) Create a new JarFile from the contents of the file specified by filename. |
JarFile | public JarFile(File file, boolean verify) throws IOException(Code) | | Create a new JarFile using the contents of file.
Parameters: file - java.io.File Parameters: verify - verify a signed jar file exception: java.io.IOException - If the file cannot be read. |
JarFile | public JarFile(File file, boolean verify, int mode) throws IOException(Code) | | Create a new JarFile using the contents of file.
Parameters: file - java.io.File Parameters: verify - verify a signed jar file Parameters: mode - the mode to use, either OPEN_READ or OPEN_READ | OPEN_DELETE exception: java.io.IOException - If the file cannot be read. |
JarFile | public JarFile(String filename) throws IOException(Code) | | Create a new JarFile from the contents of the file specified by filename.
Parameters: filename - java.lang.String exception: java.io.IOException - If fileName cannot be opened for reading. |
JarFile | public JarFile(String filename, boolean verify) throws IOException(Code) | | Create a new JarFile from the contents of the file specified by filename.
Parameters: filename - java.lang.String Parameters: verify - verify a signed jar file exception: java.io.IOException - If fileName cannot be opened for reading. |
getEntry | public ZipEntry getEntry(String name)(Code) | | Return the JarEntry specified by name or null if no such entry exists
Parameters: name - the name of the entry in the jar file java.util.jar.JarEntry |
getInputStream | public InputStream getInputStream(ZipEntry ze) throws IOException(Code) | | Return an InputStream for reading the decompressed contents of ze.
Parameters: ze - the ZipEntry to read from java.io.InputStream exception: java.io.IOException - If an error occured while creating the InputStream. |
getJarEntry | public JarEntry getJarEntry(String name)(Code) | | Return the JarEntry specified by name or null if no such entry exists.
Parameters: name - the name of the entry in the jar file java.util.jar.JarEntry |
getManifest | public Manifest getManifest() throws IOException(Code) | | Returns the Manifest object associated with this JarFile or null if no
manifest entry exists.
java.util.jar.Manifest |
|
|
|