Archive.Entry, Archive.EntryFilter, Archive.EntryRenameFilter| Constructor | Description |
|---|---|
ExplodedArchive(java.io.File root) |
Create a new
ExplodedArchive instance. |
ExplodedArchive(java.io.File root,
boolean recursive) |
Create a new
ExplodedArchive instance. |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Collection<Archive.Entry> |
getEntries() |
Returns all entries from the archive.
|
Archive |
getFilteredArchive(Archive.EntryRenameFilter filter) |
Returns a filtered version of the archive.
|
java.util.jar.Manifest |
getManifest() |
Returns the manifest of the archive.
|
protected Archive |
getNestedArchive(Archive.Entry entry) |
|
java.util.List<Archive> |
getNestedArchives(Archive.EntryFilter filter) |
Returns nested
Archives for entries that match the specified filter. |
java.net.URL |
getUrl() |
Returns a URL that can be used to load the archive.
|
getMainClass, toStringpublic ExplodedArchive(java.io.File root)
ExplodedArchive instance.root - the root folderpublic ExplodedArchive(java.io.File root,
boolean recursive)
ExplodedArchive instance.root - the root folderrecursive - if recursive searching should be used to locate the manifest.
Defaults to true, folders with a large tree might want to set this to {code
false}.public java.net.URL getUrl()
throws java.net.MalformedURLException
Archivepublic java.util.jar.Manifest getManifest()
throws java.io.IOException
ArchivegetManifest in class Archivejava.io.IOException - if the manifest cannot be readpublic java.util.List<Archive> getNestedArchives(Archive.EntryFilter filter) throws java.io.IOException
ArchiveArchives for entries that match the specified filter.getNestedArchives in class Archivefilter - the filter used to limit entriesjava.io.IOException - if nested archives cannot be readpublic java.util.Collection<Archive.Entry> getEntries()
ArchivegetEntries in class Archiveprotected Archive getNestedArchive(Archive.Entry entry) throws java.io.IOException
java.io.IOExceptionpublic Archive getFilteredArchive(Archive.EntryRenameFilter filter) throws java.io.IOException
ArchivegetFilteredArchive in class Archivefilter - the filter to applyjava.io.IOException - if the archive cannot be readCopyright © 2018. All rights reserved.