| Method from sun.net.www.protocol.jar.URLJarFile Detail: |
public void close() throws IOException {
if (closeController != null) {
closeController.close(this);
}
super.close();
}
|
protected void finalize() throws IOException {
close();
}
|
public ZipEntry getEntry(String name) {
ZipEntry ze = super.getEntry(name);
if (ze != null) {
if (ze instanceof JarEntry)
return new URLJarFileEntry((JarEntry)ze);
else
throw new InternalError(super.getClass() +
" returned unexpected entry type " +
ze.getClass());
}
return null;
}
Returns the ZipEntry for the given entry name or
null if not found. |
static JarFile getJarFile(URL url) throws IOException {
return getJarFile(url, null);
}
|
static JarFile getJarFile(URL url,
URLJarFile.URLJarFileCloseController closeController) throws IOException {
if (isFileURL(url))
return new URLJarFile(url, closeController);
else {
return retrieve(url, closeController);
}
}
|
public Manifest getManifest() throws IOException {
if (!isSuperMan()) {
return null;
}
Manifest man = new Manifest();
Attributes attr = man.getMainAttributes();
attr.putAll((Map)superAttr.clone());
// now deep copy the manifest entries
if (superEntries != null) {
Map< String, Attributes > entries = man.getEntries();
for (String key : superEntries.keySet()) {
Attributes at = superEntries.get(key);
entries.put(key, (Attributes) at.clone());
}
}
return man;
}
|
public static void setCallBack(URLJarFileCallBack cb) {
callback = cb;
}
|