Top Description Fields Constructors Methods
org.apache.catalina.webresources

public Class TomcatJarInputStream

extends JarInputStream
Class Inheritance
Imports
java.io.IOException, .InputStream, java.util.jar.JarEntry, .JarInputStream, java.util.zip.ZipEntry

The purpose of this sub-class is to obtain references to the JarEntry objects for META-INF/ and META-INF/MANIFEST.MF that are otherwise swallowed by the JarInputStream implementation.

Field Summary

Modifier and TypeField and Description
private JarEntry
private JarEntry

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected ZipEntry
createZipEntry(String
the name of the JAR/ZIP file entry
name
)

Overrides java.util.jar.JarInputStream.createZipEntry.

Creates a new JarEntry (ZipEntry) for the specified JAR file entry name.

pack-priv JarEntry
pack-priv JarEntry
Inherited from java.util.jar.JarInputStream:
getManifestgetNextEntrygetNextJarEntryread

Field Detail

manifestEntryback to summary
private JarEntry manifestEntry
metaInfEntryback to summary
private JarEntry metaInfEntry

Constructor Detail

TomcatJarInputStreamback to summary
pack-priv TomcatJarInputStream(InputStream in) throws IOException

Method Detail

createZipEntryback to summary
protected ZipEntry createZipEntry(String name)

Overrides java.util.jar.JarInputStream.createZipEntry.

Doc from java.util.jar.JarInputStream.createZipEntry.

Creates a new JarEntry (ZipEntry) for the specified JAR file entry name. The manifest attributes of the specified JAR file entry name will be copied to the new JarEntry.

Parameters
name:String

the name of the JAR/ZIP file entry

Returns:ZipEntry

the JarEntry object just created

Annotations
@Override
getManifestEntryback to summary
pack-priv JarEntry getManifestEntry()
getMetaInfEntryback to summary
pack-priv JarEntry getMetaInfEntry()