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
Archive s 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
public String getMainClass() throws Exception
Start-Class
manifest entry.Exception
public abstract Manifest getManifest() throws IOException
IOException
public abstract Collection<Archive.Entry> getEntries()
public abstract List<Archive> getNestedArchives(Archive.EntryFilter filter) throws IOException
Archive
s for entries that match the specified filter.filter
- the filter used to limit entriesIOException
public abstract Archive getFilteredArchive(Archive.EntryRenameFilter filter) throws IOException
filter
- the filter to applyIOException
Copyright © 2014. All rights reserved.