| java.lang.Object | ||
| ↳ | java.util.zip.ZipFile | |
| ↳ | java.util.jar.JarFile | |
JarFile is used to read jar entries and their associated data from
 jar files.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | MANIFEST_NAME | The MANIFEST file name. | |||||||||
| [Expand] Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
java.util.zip.ZipFile | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Create a new  JarFileusing the contents of the specified file. | |||||||||||
| Create a new  JarFileusing the contents of the specified file. | |||||||||||
| Create a new  JarFileusing the contents of file. | |||||||||||
| Create a new  JarFilefrom the contents of the file specified by
 filename. | |||||||||||
| Create a new  JarFilefrom the contents of the file specified byfilename. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Closes this  JarFile. | |||||||||||
| Return an enumeration containing the  JarEntryscontained in thisJarFile. | |||||||||||
| Return the  JarEntryspecified by name ornullif no such
 entry exists. | |||||||||||
| Return an  InputStreamfor reading the decompressed contents of
 ZIP entry. | |||||||||||
| Return the  JarEntryspecified by its name ornullif no
 such entry exists. | |||||||||||
| Returns the  Manifestobject associated with thisJarFileornullif no MANIFEST entry exists. | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.util.zip.ZipFile | |||||||||||
|  From class
  java.lang.Object | |||||||||||
The MANIFEST file name.
Create a new JarFile using the contents of the specified file.
| file | the JAR file as File. | 
|---|
| IOException | If the file cannot be read. | 
|---|
Create a new JarFile using the contents of the specified file.
| file | the JAR file as File. | 
|---|---|
| verify | if this JAR file is signed whether it must be verified. | 
| IOException | If the file cannot be read. | 
|---|
Create a new JarFile using the contents of file.
| file | the JAR file as File. | 
|---|---|
| verify | if this JAR filed is signed whether it must be verified. | 
| mode | the mode to use, either OPEN_READorOPEN_DELETE. | 
| IOException | If the file cannot be read. | 
|---|
Create a new JarFile from the contents of the file specified by
 filename.
| filename | the file name referring to the JAR file. | 
|---|
| IOException | if file name cannot be opened for reading. | 
|---|
Create a new JarFile from the contents of the file specified by
 filename.
| filename | the file name referring to the JAR file. | 
|---|---|
| verify | if this JAR filed is signed whether it must be verified. | 
| IOException | If file cannot be opened or read. | 
|---|
Closes this JarFile.
| IOException | if an error occurs. | 
|---|
Return an enumeration containing the JarEntrys contained in this
 JarFile.
Enumeration containing the JAR entries.| IllegalStateException | if this JarFileis closed. | 
|---|
Return the JarEntry specified by name or null if no such
 entry exists.
| name | the name of the entry in the JAR file. | 
|---|
Return an InputStream for reading the decompressed contents of
 ZIP entry.
| ze | the ZIP entry to be read. | 
|---|
| IOException | if an error occurred while creating the input stream. | 
|---|
Return the JarEntry specified by its name or null if no
 such entry exists.
| name | the name of the entry in the JAR file. | 
|---|
Returns the Manifest object associated with this JarFile
 or null if no MANIFEST entry exists.
| IOException | if an error occurs reading the MANIFEST file. | 
|---|---|
| IllegalStateException | if the jar file is closed. |