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 |
|---|---|
Manifest |
getManifest()
Returns the manifest of the archive.
|
protected Archive |
getNestedArchive(Archive.Entry entry) |
List<Archive> |
getNestedArchives(Archive.EntryFilter filter)
Returns nested
Archives for entries that match the specified filter. |
URL |
getUrl()
Returns a URL that can be used to load the archive.
|
Iterator<Archive.Entry> |
iterator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, 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 List<Archive> getNestedArchives(Archive.EntryFilter filter) throws IOException
ArchiveArchives for entries that match the specified filter.getNestedArchives in interface Archivefilter - the filter used to limit entriesIOException - if nested archives cannot be readpublic Iterator<Archive.Entry> iterator()
iterator in interface Iterable<Archive.Entry>protected Archive getNestedArchive(Archive.Entry entry) throws IOException
IOExceptionCopyright © 2020 Pivotal Software, Inc.. All rights reserved.