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.

    The JAR manifest file name.

    Fields declared in class ZipFile

    OPEN_DELETE, OPEN_READ

    static final int

    Mode flag to open a ZIP file and mark it for deletion.

    static final int

    Mode flag to open a ZIP file for reading.

  • Constructor Summary

    Constructors

    Creates a new JarFile to read from the specified File object.

    JarFile(File file, boolean verify)

    Creates a new JarFile to read from the specified File object.

    JarFile(File file, boolean verify, int mode)

    Creates a new JarFile to read from the specified File object in the specified mode.

    Creates a new JarFile to read from the specified File object in the specified mode.

    Creates a new JarFile to read from the specified file name.

    JarFile(String name, boolean verify)

    Creates a new JarFile to read from the specified file name.

  • Method Summary

    Returns the version that represents the unversioned configuration of a multi-release jar file.

    entries()

    Returns an enumeration of the jar file entries.

    Returns the ZipEntry for the given base entry name or null if not found.

    Returns an input stream for reading the contents of the specified ZIP file entry.

    Returns the JarEntry for the given base entry name or null if not found.

    Returns the jar file manifest, or null if none.

    Returns the maximum version used when searching for versioned entries.

    final boolean

    Indicates whether or not this jar file is a multi-release jar file.

    Returns the version that represents the effective runtime versioned configuration of a multi-release jar file.

    stream()

    Returns an ordered Stream over the jar file entries.

    Returns a Stream of the versioned jar file entries.

    Methods declared in class ZipFile

    close, getComment, getName, size, toString

    void

    Returns the ZIP file comment.

    Returns the path name of the ZIP file.

    int

    Returns the number of entries in the ZIP file.

    Returns a string identifying this ZipFile, for debugging.

    Methods declared in class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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.

    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

    • MANIFEST_NAME

    • 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

    • JarFile

    • JarFile

    • JarFile

    • JarFile

    • JarFile

    • JarFile

  • Method Details

    • baseVersion

    • runtimeVersion

    • getVersion

    • isMultiRelease

    • getManifest

    • getJarEntry

    • getEntry

    • entries

    • stream

    • versionedStream

    • getInputStream