| 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
           
        
           JarFile
          
          using the contents of the specified file.
          | 
       ||||||||||
| 
          | 
        
          
          Create a new
           
        
           JarFile
          
          using the contents of the specified file.
          | 
       ||||||||||
| 
          | 
        
          
          Create a new
           
        
           JarFile
          
          using the contents of file.
          | 
       ||||||||||
| 
          | 
        
          
          Create a new
           
        
           JarFile
          
          from the contents of the file specified by
 filename.
          | 
       ||||||||||
| 
          | 
        
          
          Create a new
           
        
           JarFile
          
          from the contents of the file specified by
          
           filename
          
          .
          | 
       ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
          | 
        
          
          Closes this
           
        
           JarFile
          
          .
          | 
       ||||||||||
| 
          | 
        
          
          Return an enumeration containing the
           
        
           JarEntrys
          
          contained in this
          
           JarFile
          
          .
          | 
       ||||||||||
| 
          | 
        
          
          Return the
           
        
           JarEntry
          
          specified by name or
          
           null
          
          if no such
 entry exists.
          | 
       ||||||||||
| 
          | 
        
          
          Return an
           
        
           InputStream
          
          for reading the decompressed contents of
 ZIP entry.
          | 
       ||||||||||
| 
          | 
        
          
          Return the
           
        
           JarEntry
          
          specified by its name or
          
           null
          
          if no
 such entry exists.
          | 
       ||||||||||
| 
          | 
        
          
          Returns the
           
        
           Manifest
          
          object associated with this
          
           JarFile
          
          or
          
           null
          
          if no MANIFEST entry exists.
          | 
       ||||||||||
| 
         
          [Expand]
         
          
          Inherited Methods
          
         | 
       |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
         
           
         
         From class
         
          java.util.zip.ZipFile
         
          | 
       |||||||||||
         
           
         
         From class
         
          java.lang.Object
         
          | 
       |||||||||||
         
           
         
         From interface
         
          java.io.Closeable
         
          | 
       |||||||||||
         
           
         
         From interface
         
          java.lang.AutoCloseable
         
          | 
       |||||||||||
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_READ
            
           
           or
           
            
             OPEN_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
           
            JarFile
           
           is 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. |