ExplodedArchive, FilteredArchive, JarFileArchivepublic abstract class Archive
extends java.lang.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 java.util.Collection<Archive.Entry> |
getEntries() |
Returns all entries from the archive.
|
abstract 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.
|
abstract java.util.jar.Manifest |
getManifest() |
Returns the manifest of the archive.
|
abstract java.util.List<Archive> |
getNestedArchives(Archive.EntryFilter filter) |
Returns nested
Archives for entries that match the specified filter. |
abstract java.net.URL |
getUrl() |
Returns a URL that can be used to load the archive.
|
java.lang.String |
toString() |
public abstract java.net.URL getUrl()
throws java.net.MalformedURLException
java.net.MalformedURLException - if the URL is malformedpublic java.lang.String getMainClass()
throws java.lang.Exception
Start-Class manifest entry.java.lang.Exception - if the main class cannot be obtainedpublic java.lang.String toString()
toString in class java.lang.Objectpublic abstract java.util.jar.Manifest getManifest()
throws java.io.IOException
java.io.IOException - if the manifest cannot be readpublic abstract java.util.Collection<Archive.Entry> getEntries()
public abstract java.util.List<Archive> getNestedArchives(Archive.EntryFilter filter) throws java.io.IOException
Archives for entries that match the specified filter.filter - the filter used to limit entriesjava.io.IOException - if nested archives cannot be readpublic abstract Archive getFilteredArchive(Archive.EntryRenameFilter filter) throws java.io.IOException
filter - the filter to applyjava.io.IOException - if the archive cannot be readCopyright © 2018. All rights reserved.