Archive.Entry, Archive.EntryFilter, Archive.EntryRenameFilter| 构造器和说明 |
|---|
ExplodedArchive(File root)
Create a new
ExplodedArchive instance. |
ExplodedArchive(File root,
boolean recursive)
Create a new
ExplodedArchive instance. |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<Archive.Entry> |
getEntries()
Returns all entries from the archive.
|
Archive |
getFilteredArchive(Archive.EntryRenameFilter filter)
Returns a filtered version of the archive.
|
Manifest |
getManifest()
Returns the manifest of the archive.
|
protected Archive |
getNestedArchive(Archive.Entry entry) |
List<Archive> |
getNestedArchives(Archive.EntryFilter filter)
Returns nested
Archives for entries that match the specified filter. |
URL |
getUrl()
Returns a URL that can be used to load the archive.
|
getMainClass, toStringpublic ExplodedArchive(File root)
ExplodedArchive instance.root - the root folderpublic ExplodedArchive(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 URL getUrl() throws MalformedURLException
ArchivegetUrl 在类中 ArchiveMalformedURLException - if the URL is malformedpublic Manifest getManifest() throws IOException
ArchivegetManifest 在类中 ArchiveIOException - if the manifest cannot be readpublic List<Archive> getNestedArchives(Archive.EntryFilter filter) throws IOException
ArchiveArchives for entries that match the specified filter.getNestedArchives 在类中 Archivefilter - the filter used to limit entriesIOException - if nested archives cannot be readpublic Collection<Archive.Entry> getEntries()
ArchivegetEntries 在类中 Archiveprotected Archive getNestedArchive(Archive.Entry entry) throws IOException
IOExceptionpublic Archive getFilteredArchive(Archive.EntryRenameFilter filter) throws IOException
ArchivegetFilteredArchive 在类中 Archivefilter - the filter to applyIOException - if the archive cannot be readCopyright © 2023. All rights reserved.