# JarFile

public class **JarFile** extends [ZipFile](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html)  
The `JarFile` class is used to read the contents of a jar file
from any file that can be opened with `java.io.RandomAccessFile`.
It extends the class `java.util.zip.ZipFile` with support
for reading an optional `Manifest` entry. The
`Manifest` can be used to specify meta-information about the
jar file and its entries.

Unless otherwise noted, passing a null argument to a constructor
or method in this class will cause a `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NullPointerException.html` to be
thrown.

If the verify flag is on when opening a signed jar file, the content of the
file is verified against its signature embedded inside the file. Please note
that the verification process does not include validating the signer's
certificate. A caller should inspect the return value of
`https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarEntry.html#getCodeSigners()` to further determine if the signature
can be trusted.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Manifest.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarEntry.html`

### Constant Summary

|---|---|---|
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [MANIFEST_NAME](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarFile.html#MANIFEST_NAME) | The JAR manifest file name. |

### Inherited Constant Summary

From class [java.util.zip.ZipFile](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html)

|---|---|---|
| int | [CENATT](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENATT) |   |
| int | [CENATX](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENATX) |   |
| int | [CENCOM](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENCOM) |   |
| int | [CENCRC](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENCRC) |   |
| int | [CENDSK](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENDSK) |   |
| int | [CENEXT](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENEXT) |   |
| int | [CENFLG](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENFLG) |   |
| int | [CENHDR](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENHDR) |   |
| int | [CENHOW](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENHOW) |   |
| int | [CENLEN](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENLEN) |   |
| int | [CENNAM](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENNAM) |   |
| int | [CENOFF](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENOFF) |   |
| long | [CENSIG](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENSIG) |   |
| int | [CENSIZ](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENSIZ) |   |
| int | [CENTIM](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENTIM) |   |
| int | [CENVEM](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENVEM) |   |
| int | [CENVER](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#CENVER) |   |
| int | [ENDCOM](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#ENDCOM) |   |
| int | [ENDHDR](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#ENDHDR) |   |
| int | [ENDOFF](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#ENDOFF) |   |
| long | [ENDSIG](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#ENDSIG) |   |
| int | [ENDSIZ](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#ENDSIZ) |   |
| int | [ENDSUB](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#ENDSUB) |   |
| int | [ENDTOT](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#ENDTOT) |   |
| int | [EXTCRC](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#EXTCRC) |   |
| int | [EXTHDR](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#EXTHDR) |   |
| int | [EXTLEN](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#EXTLEN) |   |
| long | [EXTSIG](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#EXTSIG) |   |
| int | [EXTSIZ](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#EXTSIZ) |   |
| int | [LOCCRC](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#LOCCRC) |   |
| int | [LOCEXT](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#LOCEXT) |   |
| int | [LOCFLG](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#LOCFLG) |   |
| int | [LOCHDR](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#LOCHDR) |   |
| int | [LOCHOW](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#LOCHOW) |   |
| int | [LOCLEN](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#LOCLEN) |   |
| int | [LOCNAM](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#LOCNAM) |   |
| long | [LOCSIG](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#LOCSIG) |   |
| int | [LOCSIZ](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#LOCSIZ) |   |
| int | [LOCTIM](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#LOCTIM) |   |
| int | [LOCVER](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#LOCVER) |   |
| int | [OPEN_DELETE](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#OPEN_DELETE) | Mode flag to open a zip file and mark it for deletion. |
| int | [OPEN_READ](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#OPEN_READ) | Mode flag to open a zip file for reading. |

### Public Constructor Summary

|---|---|
|   | [JarFile](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarFile.html#JarFile(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Creates a new `JarFile` to read from the specified file `name`. |
|   | [JarFile](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarFile.html#JarFile(java.lang.String,%20boolean))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, boolean verify) Creates a new `JarFile` to read from the specified file `name`. |
|   | [JarFile](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarFile.html#JarFile(java.io.File))([File](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/File.html) file) Creates a new `JarFile` to read from the specified `File` object. |
|   | [JarFile](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarFile.html#JarFile(java.io.File,%20boolean))([File](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/File.html) file, boolean verify) Creates a new `JarFile` to read from the specified `File` object. |
|   | [JarFile](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarFile.html#JarFile(java.io.File,%20boolean,%20int))([File](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/File.html) file, boolean verify, int mode) Creates a new `JarFile` to read from the specified `File` object in the specified mode. |

### Public Method Summary

|---|---|
| [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<[JarEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarEntry.html)\> | [entries](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarFile.html#entries())() Returns an enumeration of the zip file entries. |
| [ZipEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipEntry.html) | [getEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarFile.html#getEntry(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Returns the `ZipEntry` for the given entry name or `null` if not found. |
| synchronized [InputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InputStream.html) | [getInputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarFile.html#getInputStream(java.util.zip.ZipEntry))([ZipEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipEntry.html) ze) Returns an input stream for reading the contents of the specified zip file entry. |
| [JarEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarEntry.html) | [getJarEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarFile.html#getJarEntry(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Returns the `JarEntry` for the given entry name or `null` if not found. |
| [Manifest](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Manifest.html) | [getManifest](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarFile.html#getManifest())() Returns the jar file manifest, or `null` if none. |
| [Stream](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/stream/Stream.html)\<[JarEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarEntry.html)\> | [stream](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarFile.html#stream())() Return an ordered `Stream` over the ZIP file entries. |

### Inherited Method Summary

From class [java.util.zip.ZipFile](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html)

|---|---|
| void | [close](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#close())() Closes the ZIP file. |
| [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<? extends [ZipEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipEntry.html)\> | [entries](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#entries())() Returns an enumeration of the ZIP file entries. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#finalize())() Ensures that the system resources held by this ZipFile object are released when there are no more references to it. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getComment](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#getComment())() Returns the zip file comment, or null if none. |
| [ZipEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipEntry.html) | [getEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#getEntry(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Returns the zip file entry for the specified name, or null if not found. |
| [InputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InputStream.html) | [getInputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#getInputStream(java.util.zip.ZipEntry))([ZipEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipEntry.html) entry) Returns an input stream for reading the contents of the specified zip file entry. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getName](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#getName())() Returns the path name of the ZIP file. |
| int | [size](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#size())() Returns the number of entries in the ZIP file. |
| [Stream](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/stream/Stream.html)\<? extends [ZipEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipEntry.html)\> | [stream](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipFile.html#stream())() Return an ordered `Stream` over the ZIP file entries. |

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

From interface [java.io.Closeable](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/Closeable.html)

|---|---|
| abstract void | [close](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/Closeable.html#close())() Closes this stream and releases any system resources associated with it. |

From interface [java.lang.AutoCloseable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/AutoCloseable.html)

|---|---|
| abstract void | [close](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/AutoCloseable.html#close())() Closes this resource, relinquishing any underlying resources. |

## Constants

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**MANIFEST_NAME**

The JAR manifest file name.
Constant Value: "META-INF/MANIFEST.MF"

## Public Constructors

#### public
**JarFile**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name)

Creates a new `JarFile` to read from the specified
file `name`. The `JarFile` will be verified if
it is signed.

##### Parameters

| name | the name of the jar file to be opened for reading |
|---|---|

##### Throws

| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error has occurred |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if access to the file is denied by the SecurityManager |
|---|---|

#### public
**JarFile**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, boolean verify)

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

##### Parameters

| name | the name of the jar file to be opened for reading |
| verify | whether or not to verify the jar file if it is signed. |
|---|---|

##### Throws

| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error has occurred |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if access to the file is denied by the SecurityManager |
|---|---|

#### public
**JarFile**
([File](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/File.html) file)

Creates a new `JarFile` to read from the specified
`File` object. The `JarFile` will be verified if
it is signed.

##### Parameters

| file | the jar file to be opened for reading |
|---|---|

##### Throws

| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error has occurred |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if access to the file is denied by the SecurityManager |
|---|---|

#### public
**JarFile**
([File](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/File.html) file, boolean verify)

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

##### Parameters

| file | the jar file to be opened for reading |
| verify | whether or not to verify the jar file if it is signed. |
|---|---|

##### Throws

| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error has occurred |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if access to the file is denied by the SecurityManager. |
|---|---|

#### public
**JarFile**
([File](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/File.html) file, boolean verify, int mode)

Creates a new `JarFile` to read from the specified
`File` object in the specified mode. The mode argument
must be either OPEN_READ or OPEN_READ \| OPEN_DELETE.

##### Parameters

| file | the jar file to be opened for reading |
| verify | whether or not to verify the jar file if it is signed. |
| mode | the mode in which the file is to be opened |
|---|---|

##### Throws

| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error has occurred |
| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | if the mode argument is invalid |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if access to the file is denied by the SecurityManager |
|---|---|

## Public Methods

#### public [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<[JarEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarEntry.html)\>
**entries**
()

Returns an enumeration of the zip file entries.

##### Returns

- an enumeration of the ZIP file entries

#### public [ZipEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipEntry.html)
**getEntry**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name)

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

##### Parameters

| name | the jar file entry name |
|---|---|

##### Returns

- the `ZipEntry` for the given entry name or `null` if not found

##### Throws

| [IllegalStateException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalStateException.html) | may be thrown if the jar file has been closed |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipEntry.html`

#### public synchronized [InputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InputStream.html)
**getInputStream**
([ZipEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipEntry.html) ze)

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

##### Parameters

| ze | the zip file entry |
|---|---|

##### Returns

- an input stream for reading the contents of the specified zip file entry

##### Throws

| [ZipException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipException.html) | if a zip file format error has occurred |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error has occurred |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | if any of the jar file entries are incorrectly signed. |
| [IllegalStateException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalStateException.html) | may be thrown if the jar file has been closed |
|---|---|

#### public [JarEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarEntry.html)
**getJarEntry**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name)

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

##### Parameters

| name | the jar file entry name |
|---|---|

##### Returns

- the `JarEntry` for the given entry name or `null` if not found.

##### Throws

| [IllegalStateException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalStateException.html) | may be thrown if the jar file has been closed |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarEntry.html`

#### public [Manifest](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Manifest.html)
**getManifest**
()

Returns the jar file manifest, or `null` if none.

##### Returns

- the jar file manifest, or `null` if none

##### Throws

| [IllegalStateException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalStateException.html) | may be thrown if the jar file has been closed |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error has occurred |
|---|---|

#### public [Stream](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/stream/Stream.html)\<[JarEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarEntry.html)\>
**stream**
()

Return an ordered `Stream` over the ZIP file entries.
Entries appear in the `Stream` in the order they appear in
the central directory of the ZIP file.

##### Returns

- an ordered `Stream` of entries in this ZIP file