public class JarFileArchive extends Object implements Archive
Archive.Entry, Archive.EntryFilter| Constructor and Description | 
|---|
| JarFileArchive(File file) | 
| JarFileArchive(File file,
              URL url) | 
| JarFileArchive(JarFile jarFile) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Closes the  Archive, releasing any open resources. | 
| Manifest | getManifest()Returns the manifest of the archive. | 
| protected Archive | getNestedArchive(Archive.Entry entry) | 
| Iterator<Archive> | getNestedArchives(Archive.EntryFilter searchFilter,
                 Archive.EntryFilter includeFilter)Returns nested  Archives for entries that match the specified filters. | 
| URL | getUrl()Returns a URL that can be used to load the archive. | 
| Iterator<Archive.Entry> | iterator()Deprecated.  | 
| String | toString() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, getNestedArchives, isExploded, spliteratorpublic JarFileArchive(File file) throws IOException
IOExceptionpublic JarFileArchive(File file, URL url) throws IOException
IOExceptionpublic JarFileArchive(JarFile jarFile)
public URL getUrl() throws MalformedURLException
ArchivegetUrl in interface ArchiveMalformedURLException - if the URL is malformedpublic Manifest getManifest() throws IOException
ArchivegetManifest in interface ArchiveIOException - if the manifest cannot be readpublic Iterator<Archive> getNestedArchives(Archive.EntryFilter searchFilter, Archive.EntryFilter includeFilter) throws IOException
ArchiveArchives for entries that match the specified filters.getNestedArchives in interface ArchivesearchFilter - filter used to limit when additional sub-entry searching is
 required or null if all entries should be considered.includeFilter - filter used to determine which entries should be included in
 the result or null if all entries should be includedIOException - on IO error@Deprecated public Iterator<Archive.Entry> iterator()
Archiveiterator in interface Iterable<Archive.Entry>iterator in interface ArchiveIterable.iterator()public void close()
           throws IOException
ArchiveArchive, releasing any open resources.close in interface AutoCloseableclose in interface ArchiveIOExceptionprotected Archive getNestedArchive(Archive.Entry entry) throws IOException
IOException