public class JarFileArchive extends java.lang.Object implements Archive
Archive.Entry, Archive.EntryFilter| 构造器和说明 |
|---|
JarFileArchive(java.io.File file) |
JarFileArchive(java.io.File file,
java.net.URL url) |
JarFileArchive(JarFile jarFile) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
java.util.Iterator<Archive.Entry> |
iterator() |
java.lang.String |
toString() |
public JarFileArchive(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic JarFileArchive(java.io.File file,
java.net.URL url)
throws java.io.IOException
java.io.IOExceptionpublic JarFileArchive(JarFile jarFile)
public java.net.URL getUrl()
throws java.net.MalformedURLException
Archivepublic java.util.jar.Manifest getManifest()
throws java.io.IOException
ArchivegetManifest 在接口中 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 在接口中 Archivefilter - the filter used to limit entriesjava.io.IOException - if nested archives cannot be readpublic java.util.Iterator<Archive.Entry> iterator()
iterator 在接口中 java.lang.Iterable<Archive.Entry>protected Archive getNestedArchive(Archive.Entry entry) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString 在类中 java.lang.Object