/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/* URL jar file is a common JarFile subtype used for JarURLConnection */
/*
* Interface to be able to call retrieve() in plugin if
* this variable is set.
*/
/* Controller of the Jar File's closing */
}
else {
}
}
/*
* Changed modifier from private to public in order to be able
* to instantiate URLJarFile from sun.plugin package.
*/
}
/*
* Changed modifier from private to public in order to be able
* to instantiate URLJarFile from sun.plugin package.
*/
this.closeController = closeController;
}
this.closeController = closeController;
}
/*
* Consider this a 'file' only if it's a LOCAL file, because
* 'file:' URLs can be accessible through ftp.
*/
return true;
}
return false;
}
/*
* close the jar file.
*/
close();
}
/**
* Returns the <code>ZipEntry</code> for the given entry name or
* <code>null</code> if not found.
*
* @param name the JAR file entry name
* @return the <code>ZipEntry</code> for the given entry name or
* <code>null</code> if not found
* @see java.util.zip.ZipEntry
*/
else
throw new InternalError(super.getClass() +
" returned unexpected entry type " +
}
return null;
}
if (!isSuperMan()) {
return null;
}
// now deep copy the manifest entries
if (superEntries != null) {
}
}
return man;
}
/* If close controller is set the notify the controller about the pending close */
if (closeController != null) {
closeController.close(this);
}
super.close();
}
// optimal side-effects
superMan = super.getManifest();
}
return true;
} else
return false;
}
/**
* Given a URL, retrieves a JAR file, caches it to disk, and creates a
* cached JAR file object.
*/
}
/**
* Given a URL, retrieves a JAR file, caches it to disk, and creates a
* cached JAR file object.
*/
private static JarFile retrieve(final URL url, final URLJarFileCloseController closeController) throws IOException {
/*
* See if interface is set, then call retrieve function of the class
* that implements URLJarFileCallBack interface (sun.plugin - to
* handle the cache failure for JARJAR file.)
*/
{
}
else
{
/* get the stream before asserting privileges */
new PrivilegedExceptionAction<JarFile>() {
try {
return jarFile;
try {
} catch (IOException ioe) {
}
throw thr;
}
}
});
} catch (PrivilegedActionException pae) {
}
return result;
}
}
/*
* Set the call back interface to call retrive function in sun.plugin
* package if plugin is running.
*/
{
}
super(je);
}
if (URLJarFile.this.isSuperMan()) {
if (e != null) {
if (a != null)
return (Attributes)a.clone();
}
}
return null;
}
}
}
}
public interface URLJarFileCloseController {
}
}