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
Archive s 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.IOException
public JarFileArchive(java.io.File file, java.net.URL url) throws java.io.IOException
java.io.IOException
public JarFileArchive(JarFile jarFile)
public java.net.URL getUrl() throws java.net.MalformedURLException
Archive
public java.util.jar.Manifest getManifest() throws java.io.IOException
Archive
getManifest
在接口中 Archive
java.io.IOException
- if the manifest cannot be readpublic java.util.List<Archive> getNestedArchives(Archive.EntryFilter filter) throws java.io.IOException
Archive
Archive
s for entries that match the specified filter.getNestedArchives
在接口中 Archive
filter
- 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.IOException
public java.lang.String toString()
toString
在类中 java.lang.Object