API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.jar. JarInputStream View Source
Author(s)
David Connelly
Since
1.2
Version
1.37, 04/07/06
Serial
Hierarchy
 Object
      InputStream
          FilterInputStream
              InflaterInputStream
                  ZipInputStream
                      JarInputStream
Implements
Subclasses
Description
public class JarInputStream
  The JarInputStream class is used to read the contents of a JAR file from any input stream.
See also:    Manifest ZipInputStream
Constructors
public JarInputStream (InputStream in) throws IOException
  Creates a new JarInputStream and reads the optional manifest.
public JarInputStream (InputStream in, boolean verify) throws IOException
  Creates a new JarInputStream and reads the optional manifest.
Methods
Hide/Show inherited methods
public int available () throws IOException [Inherited From ZipInputStream]
  Returns 0 after EOF has reached for the current entry data, otherwise always return 1.
public void close () throws IOException [Inherited From ZipInputStream]
  Closes this input stream and releases any system resources associated with the stream.
public void closeEntry () throws IOException [Inherited From ZipInputStream]
  Closes the current ZIP entry and positions the stream for reading the next entry.
protected ZipEntry createZipEntry (String name) [Overrides ZipInputStream]
  Creates a new JarEntry (ZipEntry) for the specified JAR file entry name.
protected void fill () throws IOException [Inherited From InflaterInputStream]
  Fills input buffer with more data to decompress.
public Manifest getManifest ()
  Returns the Manifest for this JAR file, or null if none.
public ZipEntry getNextEntry () throws IOException [Overrides ZipInputStream]
  Reads the next ZIP file entry and positions the stream at the beginning of the entry data.
public JarEntry getNextJarEntry () throws IOException
  Reads the next JAR file entry and positions the stream at the beginning of the entry data.
publicsynchronized void mark (int readlimit) [Inherited From InflaterInputStream]
  Marks the current position in this input stream.
public boolean markSupported () [Inherited From InflaterInputStream]
  Tests if this input stream supports the mark and reset methods.
public int read () throws IOException [Inherited From InflaterInputStream] [Specified in InputStream]
  Reads a byte of uncompressed data.
public int read (byte[] b) throws IOException [Inherited From FilterInputStream]
  Reads up to byte.length bytes of data from this input stream into an array of bytes.
public int read (byte[] b, int off, int len) throws IOException [Overrides ZipInputStream]
  Reads from the current JAR file entry into an array of bytes.
publicsynchronized void reset () throws IOException [Inherited From InflaterInputStream]
  Repositions this stream to the position at the time the mark method was last called on this input stream.
public long skip (long n) throws IOException [Inherited From ZipInputStream]
  Skips specified number of bytes in the current ZIP entry.
Fields
Hide/Show inherited fields
protected byte buf [Inherited From InflaterInputStream]
Input buffer for decompression.
protectedvolatile InputStream in [Inherited From FilterInputStream]
The input stream to be filtered.
protected Inflater inf [Inherited From InflaterInputStream]
Decompressor for this stream.
protected int len [Inherited From InflaterInputStream]
Length of input buffer.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar