Top Description Fields Constructors Methods
org.apache.tomcat.util.scan

public Class JarFileUrlNestedJar

extends AbstractInputStreamJar
Class Inheritance
Imports
java.io.IOException, java.net.JarURLConnection, .URL, java.util.jar.JarEntry, .JarFile

Implementation of org.apache.tomcat.Jar that is optimised for file based JAR URLs that refer to a JAR file nested inside a WAR (e.g URLs of the form jar:file: ... .war!/ ... .jar).

Field Summary

Modifier and TypeField and Description
private final JarEntry
private final JarFile

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements org.apache.tomcat.Jar.close.

Close any resources associated with this JAR.

protected NonClosingJarInputStream
Inherited from org.apache.tomcat.util.scan.AbstractInputStreamJar:
closeStreamexistsgetEntryInputStreamgetEntryNamegetInputStreamgetJarFileURLgetLastModifiedgetManifestgetURLnextEntryreset

Field Detail

jarEntryback to summary
private final JarEntry jarEntry
warFileback to summary
private final JarFile warFile

Constructor Detail

JarFileUrlNestedJarback to summary
public JarFileUrlNestedJar(URL url) throws IOException

Method Detail

closeback to summary
public void close()

Implements org.apache.tomcat.Jar.close.

Doc from org.apache.tomcat.Jar.close.

Close any resources associated with this JAR.

Annotations
@Override
createJarInputStreamback to summary
protected NonClosingJarInputStream createJarInputStream() throws IOException

Implements abstract org.apache.tomcat.util.scan.AbstractInputStreamJar.createJarInputStream.

Annotations
@Override