|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packagejava.util.jar
as colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.
The Attributes class maps Manifest attribute names to associated string values. Attribute names are case-insensitive and restricted to the ASCII characters in the set [0-9a-zA-Z_-]. Attribute values can contain any characters and will be UTF8-encoded when written to the output stream. @author David Connelly @version 1.37 0238 12/0203/0001 @see Manifest @since 1.2
Signals that an error of some sort has occurred while reading from or writing to a JAR file. @author David Connelly @version 1.9 0210 12/0203/0001 @since 1.2
TheClass JarFile, constructor JarFile(File)JarFile
class is used to read the contents of a JAR file from any file that can be opened withjava.io.RandomAccessFile
. It extends the classjava.util.zip.ZipFile
with support for reading an optionalManifest
entry. TheManifest
can be used to specify meta-information about the JAR file and its entries. @author David Connelly @version 1.41 0444 12/2103/01 @see Manifest @see java.util.zip.ZipFile @see java.util.jar.JarEntry @since 1.2
Creates a newClass JarFile, constructor JarFile(File, boolean)JarFile
to read from the specifiedFile
object. TheJarFile
will be verified if it is signed. @param file the JAR file to be opened for reading @exceptionFileNotFoundExceptionIOException ifthe fileancouldI/Onot be founderror has occurred @exceptionIOExceptionSecurityException ifanaccessI/Otoerror hasthe fileoccurredis denied by the SecurityManager
Creates a newClass JarFile, constructor JarFile(File, boolean, int)JarFile
to read from the specifiedFile
object. @param file the JAR file to be opened for reading @param verify whether or not to verify the JarFile if it is signed. @exceptionFileNotFoundExceptionIOException ifthe fileancouldI/Onot be founderror has occurred @exceptionIOExceptionSecurityException ifanaccessI/Otoerror hasthe fileoccurredis denied by the SecurityManager.
Creates a newClass JarFile, constructor JarFile(String)JarFile
to read from the specifiedFile
object in the specified mode. The mode argument must be either OPEN_READ or OPEN_READ | OPEN_DELETE. @param file the JAR file to be opened for reading @param verify whether or not to verify the JarFile if it is signed. @param mode the mode in which the file is to be opened @exceptionFileNotFoundException if the file could not be found @exceptionIOException if an I/O error has occurred @exception IllegalArgumentException If the mode argument is invalid @exception SecurityException if access to the file is denied by the SecurityManager
Creates a newClass JarFile, constructor JarFile(String, boolean)JarFile
to read from the specified filename
. TheJarFile
will be verified if it is signed. @param name the name of the JAR file to be opened for reading @exceptionFileNotFoundExceptionIOException ifthe fileancouldI/Onot be founderror has occurred @exceptionIOExceptionSecurityException ifanaccessI/Otoerror hasthe fileoccurredis denied by the SecurityManager
Creates a newJarFile
to read from the specified filename
. @param name the name of the JAR file to be opened for reading @param verify whether or not to verify the JarFile if it is signed. @exceptionFileNotFoundExceptionIOException ifthe fileancouldI/Onot be founderror has occurred @exceptionIOExceptionSecurityException ifanaccessI/Otoerror hasthe fileoccurredis denied by the SecurityManager
TheJarInputStream
class is used to read the contents of a JAR file from any input stream. It extends the classjava.util.zip.ZipInputStream
with support for reading an optionalManifest
entry. TheManifest
can be used to store meta-information about the JAR file and its entries. @author David Connelly @version 1.25 0228 12/0203/0001 @see Manifest @see java.util.zip.ZipInputStream @since 1.2
TheJarOutputStream
class is used to write the contents of a JAR file to any output stream. It extends the classjava.util.zip.ZipOutputStream
with support for writing an optionalManifest
entry. TheManifest
can be used to specify meta-information about the JAR file and its entries. @author David Connelly @version 1.19 0220 12/0203/0001 @see Manifest @see java.util.zip.ZipOutputStream @since 1.2
The Manifest class is used to maintain Manifest entry names and their associated Attributes. There are main Manifest Attributes as well as per-entry Attributes.Class Manifest, Object clone()DocumentationFor information on the Manifest formatcan be found at :please see the Manifest formathttp://java.sun.com/products/jdk/1.2/docs/guide/jar/manifestspecification.html@author David Connelly @version 1.32 0238 12/0203/0001 @see Attributes @since 1.2
Returns a shallow copy of this Manifest. The shallow copy is implemented as follows:Class Manifest, Attributes getAttributes(String)public Object clone() { return new Manifest(this); }@return a shallow copy of this Manifest
Returns the Attributes for the specified entry name. This method is defined as:Class Manifest, void write(OutputStream)return (Attributes)getEntries().get(name)@param name entry name @return the Attributes for the specified entry name
Writes the Manifest to the specified OutputStream. Attributes.Name.MANIFEST_VERSION must be set in MainAttributes prior to invoking this method. @param out the output stream @exception IOException if an I/O error has occurred @see #getMainAttributes