jdk/src/java.base/share/classes/java/util/jar/package-info.java
author redestad
Mon, 12 Sep 2016 17:45:55 +0200
changeset 40812 dc3755b63ade
parent 30788 ea573d35531a
child 45663 4a0cbf8f2474
permissions -rw-r--r--
8165723: JarFile::isMultiRelease() method returns false when it should return true Reviewed-by: alanb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
30788
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
     1
/*
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
     2
 * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved.
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
     4
 *
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    10
 *
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    15
 * accompanied this code).
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    16
 *
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    20
 *
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    23
 * questions.
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    24
 */
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
30788
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    26
/**
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    27
 * Provides classes for reading and writing the JAR (Java ARchive)
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    28
 * file format, which is based on the standard ZIP file format with an
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    29
 * optional manifest file.  The manifest stores meta-information about
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    30
 * the JAR file contents and is also used for signing JAR files.
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    31
 *
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    32
 * <h2>Package Specification</h2>
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    33
 *
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    34
 * The <code>java.util.jar</code> package is based on the following
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    35
 * specifications:
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    36
 *
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    37
 * <ul>
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    38
 *   <li><b>Info-ZIP file format</b> - The JAR format is based on the Info-ZIP
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    39
 *       file format. See
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    40
 *       <a href="../zip/package-summary.html#package_description">java.util.zip
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    41
 *       package description.</a> <p>
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    42
 *       In JAR files, all file names must be encoded in the UTF-8 encoding.
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    43
 *   <li><a href="../../../../technotes/guides/jar/jar.html">
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    44
 *       Manifest and Signature Specification</a> - The manifest format specification.
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    45
 * </ul>
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    46
 *
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    47
 * @since 1.2
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    48
 */
ea573d35531a 8080901: Replace package.html files with package-info.java in the java.base module
darcy
parents: 25859
diff changeset
    49
package java.util.jar;