public class ExplodedArchive extends Object implements Archive
Archive implementation backed by an exploded archive directory.Archive.Entry, Archive.EntryFilter| 构造器和说明 |
|---|
ExplodedArchive(File root)
Create a new
ExplodedArchive instance. |
ExplodedArchive(File root,
boolean recursive)
Create a new
ExplodedArchive instance. |
| 限定符和类型 | 方法和说明 |
|---|---|
Manifest |
getManifest()
Returns the manifest of the archive.
|
protected Archive |
getNestedArchive(Archive.Entry entry) |
Iterator<Archive> |
getNestedArchives(Archive.EntryFilter searchFilter,
Archive.EntryFilter includeFilter)
Returns nested
Archives for entries that match the specified filters. |
URL |
getUrl()
Returns a URL that can be used to load the archive.
|
boolean |
isExploded()
Return if the archive is exploded (already unpacked).
|
Iterator<Archive.Entry> |
iterator()
已过时。
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ExplodedArchive(File root)
ExplodedArchive instance.root - the root directorypublic ExplodedArchive(File root, boolean recursive)
ExplodedArchive instance.root - the root directoryrecursive - if recursive searching should be used to locate the manifest.
Defaults to true, directories with a large tree might want to set this to
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 Iterator<Archive> getNestedArchives(Archive.EntryFilter searchFilter, Archive.EntryFilter includeFilter) throws IOException
ArchiveArchives for entries that match the specified filters.getNestedArchives 在接口中 ArchivesearchFilter - filter used to limit when additional sub-entry searching is
required or null if all entries should be considered.includeFilter - filter used to determine which entries should be included in
the result or null if all entries should be includedIOException - on IO error@Deprecated public Iterator<Archive.Entry> iterator()
iterator 在接口中 Iterable<Archive.Entry>protected Archive getNestedArchive(Archive.Entry entry) throws IOException
IOExceptionpublic boolean isExploded()
ArchiveisExploded 在接口中 ArchiveCopyright © 2024. All rights reserved.