All Implemented Interfaces:
Closeable, AutoCloseable

  • Field Summary

    Fields

    static final int

    Central directory (CEN) header internal file attributes field offset.

    static final int

    Central directory (CEN) header external file attributes field offset.

    static final int

    Central directory (CEN) header comment length field offset.

    static final int

    Central directory (CEN) header uncompressed file crc-32 value field offset.

    static final int

    Central directory (CEN) header disk number start field offset.

    static final int

    Central directory (CEN) header extra field length field offset.

    static final int

    Central directory (CEN) header encrypt, decrypt flags field offset.

    static final int

    Central directory (CEN) header size in bytes (including signature).

    static final int

    Central directory (CEN) header compression method field offset.

    static final int

    Central directory (CEN) header uncompressed size field offset.

    static final int

    Central directory (CEN) header filename length field offset.

    static final int

    Central directory (CEN) header LOC header offset field offset.

    static final long

    Central directory (CEN) header signature.

    static final int

    Central directory (CEN) header compressed size field offset.

    static final int

    Central directory (CEN) header modification time field offset.

    static final int

    Central directory (CEN) header version made by field offset.

    static final int

    Central directory (CEN) header version needed to extract field offset.

    static final int

    End of central directory (END) header ZIP file comment length field offset.

    static final int

    End of central directory (END) header size in bytes (including signature).

    static final int

    End of central directory (END) header offset for the first CEN header field offset.

    static final long

    End of central directory (END) header signature.

    static final int

    End of central directory (END) header central directory size in bytes field offset.

    static final int

    End of central directory (END) header number of entries on this disk field offset.

    static final int

    End of central directory (END) header total number of entries field offset.

    static final int

    Extra local (EXT) header uncompressed file crc-32 value field offset.

    static final int

    Extra local (EXT) header size in bytes (including signature).

    static final int

    Extra local (EXT) header uncompressed size field offset.

    static final long

    Extra local (EXT) header signature.

    static final int

    Extra local (EXT) header compressed size field offset.

    static final int

    Local file (LOC) header uncompressed file crc-32 value field offset.

    static final int

    Local file (LOC) header extra field length field offset.

    static final int

    Local file (LOC) header general purpose bit flag field offset.

    static final int

    Local file (LOC) header size in bytes (including signature).

    static final int

    Local file (LOC) header compression method field offset.

    static final int

    Local file (LOC) header uncompressed size field offset.

    static final int

    Local file (LOC) header filename length field offset.

    static final long

    Local file (LOC) header signature.

    static final int

    Local file (LOC) header compressed size field offset.

    static final int

    Local file (LOC) header modification time field offset.

    static final int

    Local file (LOC) header version needed to extract field offset.

    Fields declared in class InflaterInputStream

    buf, inf, len

    protected byte[]

    Input buffer for decompression.

    Decompressor for this stream.

    protected int

    The total number of bytes read into the input buffer.

  • Constructor Summary

    Constructors

    Creates a new JarInputStream and reads the optional manifest.

    Creates a new JarInputStream and reads the optional manifest.

  • Method Summary

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

    Returns the Manifest for this JAR file when it is the first entry in the stream (or the second entry if the first entry in the stream is META-INF/ and the second entry is META-INF/MANIFEST.MF), or null otherwise.

    Reads the next ZIP file entry and positions the stream at the beginning of the entry data.

    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 entry into an array of bytes, returning the number of inflated bytes.

    Methods declared in class ZipInputStream

    available, close, closeEntry, read, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferTo

    int

    Returns 0 when end of stream is detected for the current ZIP entry or ZipInputStream.closeEntry() has been called on the current ZIP entry, otherwise returns 1.

    void

    Closes this input stream and releases any system resources associated with the stream.

    void

    Closes the current ZIP entry and positions the stream for reading the next entry.

    int

    Reads the next byte of data from the input stream for the current ZIP entry.

    byte[]

    Reads all remaining bytes from the input stream for the current ZIP entry.

    int

    Reads the requested number of bytes from the input stream into the given byte array for the current ZIP entry returning the number of inflated bytes.

    byte[]

    Reads up to a specified number of bytes from the input stream for the current ZIP entry.

    long

    Skips over and discards n bytes of data from this input stream for the current ZIP entry.

    void

    Skips over and discards exactly n bytes of data from this input stream for the current ZIP entry.

    long

    Reads all bytes from this input stream for the current ZIP entry and writes the bytes to the given output stream in the order that they are read.

    Methods declared in class InflaterInputStream

    fill, mark, markSupported, reset

    protected void

    Fills input buffer with more data to decompress.

    void

    mark(int readlimit)

    Marks the current position in this input stream.

    boolean

    Tests if this input stream supports the mark and reset methods.

    void

    Repositions this stream to the position at the time the mark method was last called on this input stream.

    Methods declared in class FilterInputStream

    read

    int

    Reads up to b.length bytes of data from this input stream into an array of bytes.

    Methods declared in class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Creates and returns a copy of this object.

    boolean

    Indicates whether some other object is "equal to" this one.

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    int

    Returns a hash code value for this object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    Returns a string representation of the object.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(long timeoutMillis)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    final void

    wait(long timeoutMillis, int nanos)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

  • Field Details

    • LOCSIG

    • EXTSIG

    • CENSIG

    • ENDSIG

    • LOCHDR

    • EXTHDR

    • CENHDR

    • ENDHDR

    • LOCVER

    • LOCFLG

    • LOCHOW

    • LOCTIM

    • LOCCRC

    • LOCSIZ

    • LOCLEN

    • LOCNAM

    • LOCEXT

    • EXTCRC

    • EXTSIZ

    • EXTLEN

    • CENVEM

    • CENVER

    • CENFLG

    • CENHOW

    • CENTIM

    • CENCRC

    • CENSIZ

    • CENLEN

    • CENNAM

    • CENEXT

    • CENCOM

    • CENDSK

    • CENATT

    • CENATX

    • CENOFF

    • ENDSUB

    • ENDTOT

    • ENDSIZ

    • ENDOFF

    • ENDCOM

  • Constructor Details

    • JarInputStream

    • JarInputStream

  • Method Details

    • getManifest

    • getNextEntry

    • getNextJarEntry

    • read

    • createZipEntry