JarInputStream

public class JarInputStream extends ZipInputStream

The JarInputStream class is used to read the contents of a JAR file from any input stream. It extends the class java.util.zip.ZipInputStream with support for reading an optional Manifest entry. The Manifest can be used to store meta-information about the JAR file and its entries.

Inherited Constant Summary

Inherited Field Summary

Public Constructor Summary

JarInputStream(InputStream in)
Creates a new JarInputStream and reads the optional manifest.
JarInputStream(InputStream in, boolean verify)
Creates a new JarInputStream and reads the optional manifest.

Public Method Summary

Manifest
getManifest()
Returns the Manifest for this JAR file, or null if none.
ZipEntry
getNextEntry()
Reads the next ZIP file entry and positions the stream at the beginning of the entry data.
JarEntry
getNextJarEntry()
Reads the next JAR file entry and positions the stream at the beginning of the entry data.
int
read(byte[] b, int off, int len)
Reads from the current JAR file entry into an array of bytes.

Protected Method Summary

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

Inherited Method Summary