java.util.jar
public class JarInputStream extends ZipInputStream
Since: 1.2
Constructor Summary | |
---|---|
JarInputStream(InputStream in)
Creates a new JarInputStream and tries to read the manifest.
| |
JarInputStream(InputStream in, boolean verify)
Creates a new JarInputStream and tries to read the manifest.
|
Method Summary | |
---|---|
protected ZipEntry | createZipEntry(String name)
Creates a JarEntry for a particular name and consults the manifest
for the Attributes of the entry.
|
Manifest | getManifest()
Returns the Manifest for the jar file or null if there was no Manifest. |
ZipEntry | getNextEntry()
Returns the next entry or null when there are no more entries.
|
JarEntry | getNextJarEntry()
Returns the next jar entry or null when there are no more entries.
|
int | read(byte[] buf, int off, int len)
XXX
|
Parameters: in InputStream to read the jar from
Throws: IOException when an error occurs when opening or reading
Parameters: in InputStream to read the jar from verify whether or not to verify the manifest entries
Throws: IOException when an error occurs when opening or reading
ZipEntry.getNextEntry()
Parameters: name the name of the new entry
getNextJarEntry()
. Does not return any entries found
at the beginning of the ZipFile that are special
(those that start with "META-INF/").
Throws: IOException if an IO error occurs when reading the entry
Throws: IOException if an IO error occurs when reading the entry
Parameters: buf XXX off XXX len XXX
Returns: XXX
Throws: IOException XXX