java.util.jar - JRE Emulation | JRE Emulation


Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file. The manifest stores meta-information about the JAR file contents and is also used for signing JAR files.

Package Specification

The java.util.jar package is based on the following specifications:


Attributes The Attributes class is used to store values for manifest entries. 
Attributes.Name The name part of the name/value pairs constituting an attribute as defined by the specification of the JAR manifest. 
JarEntry Represents a single file in a JAR archive together with the manifest attributes and digital signatures associated with it. 
JarFile JarFile is used to read jar entries and their associated data from jar files. 
JarInputStream The input stream from which the JAR file to be read may be fetched. 
JarOutputStream The JarOutputStream is used to write data in the JarFile format to an arbitrary output stream  
Manifest The Manifest class is used to obtain attribute information for a JarFile and its entries. 


JarException Signals that an error of some sort has occurred while reading from or writing to a JAR file.