Java java.util.jar JarFile fields, constructors, methods, implement or subclass

Example usage for Java java.util.jar JarFile fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.jar JarFile.

The text is from its open source code.

Subclass

java.util.jar.JarFile has subclasses.
Click this link to see all its subclasses.

Field

StringMANIFEST_NAME
The JAR manifest file name.

Constructor

JarFile(File file, boolean verify, int mode)
Creates a new JarFile to read from the specified File object in the specified mode.
JarFile(String name)
Creates a new JarFile to read from the specified file name .
JarFile(File file)
Creates a new JarFile to read from the specified File object.
JarFile(String name, boolean verify)
Creates a new JarFile to read from the specified file name .
JarFile(File file, boolean verify)
Creates a new JarFile to read from the specified File object.

Method

voidclose()
Closes the ZIP file.
Enumerationentries()
Returns an enumeration of the jar file entries.
ClassgetClass()
Returns the runtime class of this Object .
ZipEntrygetEntry(String name)
Returns the ZipEntry for the given base entry name or null if not found.
InputStreamgetInputStream(ZipEntry ze)
Returns an input stream for reading the contents of the specified zip file entry.
JarEntrygetJarEntry(String name)
Returns the JarEntry for the given base entry name or null if not found.
ManifestgetManifest()
Returns the jar file manifest, or null if none.
StringgetName()
Returns the path name of the ZIP file.
intsize()
Returns the number of entries in the ZIP file.
Streamstream()
Returns an ordered Stream over the jar file entries.