public class FilteredArchive extends Archive
Archive.EntryFilter
to an existing Archive
.Archive.Entry, Archive.EntryFilter, Archive.EntryRenameFilter
Constructor and Description |
---|
FilteredArchive(Archive parent,
Archive.EntryFilter filter) |
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.
|
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
Archive s 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
Archive
getUrl
in class Archive
MalformedURLException
public String getMainClass() throws Exception
Archive
Start-Class
manifest entry.getMainClass
in class Archive
Exception
public Manifest getManifest() throws IOException
Archive
getManifest
in class Archive
IOException
public Collection<Archive.Entry> getEntries()
Archive
getEntries
in class Archive
public List<Archive> getNestedArchives(Archive.EntryFilter filter) throws IOException
Archive
Archive
s for entries that match the specified filter.getNestedArchives
in class Archive
filter
- the filter used to limit entriesIOException
public Archive getFilteredArchive(Archive.EntryRenameFilter filter) throws IOException
Archive
getFilteredArchive
in class Archive
filter
- the filter to applyIOException
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.