java.util.jar
Stay organized with collections
Save and categorize content based on your preferences.
Interfaces
Pack200.Packer |
The packer engine applies various transformations to the input JAR file,
making the pack stream highly compressible by a compressor such as
gzip or zip. |
Pack200.Unpacker |
The unpacker engine converts the packed stream to a JAR file. |
Classes
Attributes |
The Attributes class maps Manifest attribute names to associated string
values. |
Attributes.Name |
The Attributes.Name class represents an attribute name stored in
this Map. |
JarEntry |
This class is used to represent a JAR file entry. |
JarFile |
The JarFile class is used to read the contents of a jar file
from any file that can be opened with java.io.RandomAccessFile . |
JarInputStream |
The JarInputStream class is used to read the contents of
a JAR file from any input stream. |
JarOutputStream |
The JarOutputStream class is used to write the contents
of a JAR file to any output stream. |
Manifest |
The Manifest class is used to maintain Manifest entry names and their
associated Attributes. |
Pack200 |
Transforms a JAR file to or from a packed stream in Pack200 format. |
Exceptions
JarException |
Signals that an error of some sort has occurred while reading from
or writing to a JAR file. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ejava.util.jar\u003c/code\u003e package provides classes for reading and writing JAR (Java Archive) files.\u003c/p\u003e\n"],["\u003cp\u003eIt includes functionalities for packing and unpacking JAR files using the Pack200 format for compression.\u003c/p\u003e\n"],["\u003cp\u003eYou can access and manipulate JAR file entries, attributes, and manifests with specialized classes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eJarInputStream\u003c/code\u003e and \u003ccode\u003eJarOutputStream\u003c/code\u003e classes enable reading from and writing to JAR files using input and output streams, respectively.\u003c/p\u003e\n"],["\u003cp\u003eError handling during JAR file operations is facilitated by the \u003ccode\u003eJarException\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# java.util.jar\n\n### Interfaces\n\n|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Pack200.Packer](../../../../reference/java/util/jar/Pack200.Packer.html) | The packer engine applies various transformations to the input JAR file, making the pack stream highly compressible by a compressor such as gzip or zip. |\n| [Pack200.Unpacker](../../../../reference/java/util/jar/Pack200.Unpacker.html) | The unpacker engine converts the packed stream to a JAR file. |\n\n### Classes\n\n|-----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| [Attributes](../../../../reference/java/util/jar/Attributes.html) | The Attributes class maps Manifest attribute names to associated string values. |\n| [Attributes.Name](../../../../reference/java/util/jar/Attributes.Name.html) | The Attributes.Name class represents an attribute name stored in this Map. |\n| [JarEntry](../../../../reference/java/util/jar/JarEntry.html) | This class is used to represent a JAR file entry. |\n| [JarFile](../../../../reference/java/util/jar/JarFile.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`. |\n| [JarInputStream](../../../../reference/java/util/jar/JarInputStream.html) | The `JarInputStream` class is used to read the contents of a JAR file from any input stream. |\n| [JarOutputStream](../../../../reference/java/util/jar/JarOutputStream.html) | The `JarOutputStream` class is used to write the contents of a JAR file to any output stream. |\n| [Manifest](../../../../reference/java/util/jar/Manifest.html) | The Manifest class is used to maintain Manifest entry names and their associated Attributes. |\n| [Pack200](../../../../reference/java/util/jar/Pack200.html) | Transforms a JAR file to or from a packed stream in Pack200 format. |\n\n### Exceptions\n\n|-----------------------------------------------------------------------|----------------------------------------------------------------------------------------------|\n| [JarException](../../../../reference/java/util/jar/JarException.html) | Signals that an error of some sort has occurred while reading from or writing to a JAR file. |"]]