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 |
|---|---|---|
java.util.Collection<Archive.Entry> |
getEntries() |
Returns all entries from the archive.
|
Archive |
getFilteredArchive(Archive.EntryRenameFilter filter) |
Returns a filtered version of the archive.
|
java.lang.String |
getMainClass() |
Obtain the main class that should be used to launch the application.
|
java.util.jar.Manifest |
getManifest() |
Returns the manifest of the archive.
|
java.util.List<Archive> |
getNestedArchives(Archive.EntryFilter filter) |
Returns nested
Archives for entries that match the specified filter. |
java.net.URL |
getUrl() |
Returns a URL that can be used to load the archive.
|
public FilteredArchive(Archive parent, Archive.EntryFilter filter)
public java.net.URL getUrl()
throws java.net.MalformedURLException
Archivepublic java.lang.String getMainClass()
throws java.lang.Exception
ArchiveStart-Class manifest entry.getMainClass in class Archivejava.lang.Exception - if the main class cannot be obtainedpublic java.util.jar.Manifest getManifest()
throws java.io.IOException
ArchivegetManifest in class Archivejava.io.IOException - if the manifest cannot be readpublic java.util.Collection<Archive.Entry> getEntries()
ArchivegetEntries in class Archivepublic java.util.List<Archive> getNestedArchives(Archive.EntryFilter filter) throws java.io.IOException
ArchiveArchives for entries that match the specified filter.getNestedArchives in class Archivefilter - the filter used to limit entriesjava.io.IOException - if nested archives cannot be readpublic Archive getFilteredArchive(Archive.EntryRenameFilter filter) throws java.io.IOException
ArchivegetFilteredArchive in class Archivefilter - the filter to applyjava.io.IOException - if the archive cannot be readCopyright © 2018. All rights reserved.