public class JarFileArchive extends Archive
Archive.Entry, Archive.EntryFilter, Archive.EntryRenameFilter| Constructor and Description |
|---|
JarFileArchive(File file) |
JarFileArchive(File file,
URL url) |
JarFileArchive(JarFile jarFile) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Archive.Entry> |
getEntries()
Returns all entries from the archive.
|
Archive |
getFilteredArchive(Archive.EntryRenameFilter filter)
Returns a filtered version of the archive.
|
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.
|
getMainClass, toStringpublic JarFileArchive(File file) throws IOException
IOExceptionpublic JarFileArchive(File file, URL url) throws IOException
IOExceptionpublic JarFileArchive(JarFile jarFile)
public URL getUrl() throws MalformedURLException
ArchivegetUrl in class ArchiveMalformedURLExceptionpublic Manifest getManifest() throws IOException
ArchivegetManifest in class ArchiveIOExceptionpublic List<Archive> getNestedArchives(Archive.EntryFilter filter) throws IOException
ArchiveArchives for entries that match the specified filter.getNestedArchives in class Archivefilter - the filter used to limit entriesIOExceptionpublic Collection<Archive.Entry> getEntries()
ArchivegetEntries in class Archiveprotected Archive getNestedArchive(Archive.Entry entry) throws IOException
IOExceptionpublic Archive getFilteredArchive(Archive.EntryRenameFilter filter) throws IOException
ArchivegetFilteredArchive in class Archivefilter - the filter to applyIOExceptionCopyright © 2014 Pivotal Software, Inc.. All rights reserved.