ExplodedArchive, FilteredArchive, JarFileArchivepublic abstract class Archive extends Object
Launcher.JarFileArchive| Modifier and Type | Class | 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 | Description |
|---|---|
Archive() |
| Modifier and Type | Method | 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
MalformedURLException - if the URL is malformedpublic String getMainClass() throws Exception
Start-Class manifest entry.Exception - if the main class cannot be obtainedpublic abstract Manifest getManifest() throws IOException
IOException - if the manifest cannot be readpublic 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 entriesIOException - if nested archives cannot be readpublic abstract Archive getFilteredArchive(Archive.EntryRenameFilter filter) throws IOException
filter - the filter to applyIOException - if the archive cannot be readCopyright © 2018. All rights reserved.