public class FilteredArchive extends Archive
Archive.EntryFilter to an existing Archive.Archive.Entry, Archive.EntryFilter, Archive.EntryRenameFilter| Constructor | Description |
|---|---|
FilteredArchive(Archive parent,
Archive.EntryFilter filter) |
| Modifier and Type | Method | Description |
|---|---|---|
Collection<Archive.Entry> |
getEntries() |
Returns all entries from the archive.
|
Archive |
getFilteredArchive(Archive.EntryRenameFilter filter) |
Returns a filtered version of the archive.
|
String |
getMainClass() |
Obtain the main class that should be used to launch the application.
|
Manifest |
getManifest() |
Returns the manifest of the archive.
|
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.
|
public FilteredArchive(Archive parent, Archive.EntryFilter filter)
public URL getUrl() throws MalformedURLException
ArchivegetUrl in class ArchiveMalformedURLException - if the URL is malformedpublic String getMainClass() throws Exception
ArchiveStart-Class manifest entry.getMainClass in class ArchiveException - if the main class cannot be obtainedpublic Manifest getManifest() throws IOException
ArchivegetManifest in class ArchiveIOException - if the manifest cannot be readpublic Collection<Archive.Entry> getEntries()
ArchivegetEntries in class Archivepublic 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 entriesIOException - if nested archives cannot be readpublic Archive getFilteredArchive(Archive.EntryRenameFilter filter) throws IOException
ArchivegetFilteredArchive in class Archivefilter - the filter to applyIOException - if the archive cannot be readCopyright © 2018. All rights reserved.