public abstract class Archive extends Object
Launcher.JarFileArchive| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
Archive.Entry
Represents a single entry in the archive. 
 | 
static interface  | 
Archive.EntryFilter
Strategy interface to filter  
Entries. | 
static interface  | 
Archive.EntryRenameFilter
Strategy interface to filter or rename  
Entries. | 
| Constructor and Description | 
|---|
Archive()  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract Collection<Archive.Entry> | 
getEntries()
Returns all entries from the archive. 
 | 
abstract 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. 
 | 
abstract Manifest | 
getManifest()
Returns the manifest of the archive. 
 | 
abstract List<Archive> | 
getNestedArchives(Archive.EntryFilter filter)
Returns nested  
Archives for entries that match the specified filter. | 
abstract URL | 
getUrl()
Returns a URL that can be used to load the archive. 
 | 
String | 
toString()  | 
public abstract URL getUrl() throws MalformedURLException
MalformedURLExceptionpublic String getMainClass() throws Exception
Start-Class manifest entry.Exceptionpublic abstract Manifest getManifest() throws IOException
IOExceptionpublic abstract Collection<Archive.Entry> getEntries()
public abstract List<Archive> getNestedArchives(Archive.EntryFilter filter) throws IOException
Archives for entries that match the specified filter.filter - the filter used to limit entriesIOExceptionpublic abstract Archive getFilteredArchive(Archive.EntryRenameFilter filter) throws IOException
filter - the filter to applyIOExceptionCopyright © 2014 Pivotal Software, Inc.. All rights reserved.