JavaScript is disabled on your browser.
Skip navigation links
Java™ Platform
Standard Ed. 8
compact1, compact2, compact3
java.util.jar

Class Attributes.Name

  • Enclosing class:
    Attributes


    public static class Attributes.Name
    extends Object 
    The Attributes.Name class represents an attribute name stored in this Map. Valid attribute names are case-insensitive, are restricted to the ASCII characters in the set [0-9a-zA-Z_-], and cannot exceed 70 characters in length. Attribute values can contain any characters and will be UTF8-encoded when written to the output stream. See the JAR File Specification for more information about valid attribute names and values.
    • Field Detail

      • MANIFEST_VERSION

        public static final Attributes.Name MANIFEST_VERSION
        Name object for Manifest-Version manifest attribute. This attribute indicates the version number of the manifest standard to which a JAR file's manifest conforms.
        See Also:
        Manifest and Signature Specification
      • CONTENT_TYPE

        public static final Attributes.Name CONTENT_TYPE
        Name object for Content-Type manifest attribute.
      • CLASS_PATH

        public static final Attributes.Name CLASS_PATH
        Name object for Class-Path manifest attribute. Bundled extensions can use this attribute to find other JAR files containing needed classes.
        See Also:
        JAR file specification
      • MAIN_CLASS

        public static final Attributes.Name MAIN_CLASS
        Name object for Main-Class manifest attribute used for launching applications packaged in JAR files. The Main-Class attribute is used in conjunction with the -jar command-line option of the java application launcher.
      • EXTENSION_INSTALLATION

        @Deprecated
        public static final Attributes.Name EXTENSION_INSTALLATION
        Deprecated. Extension mechanism will be removed in a future release. Use class path instead.
        Name object for Extension-Name manifest attribute used for declaring dependencies on installed extensions.
        See Also:
        Installed extension dependency
      • IMPLEMENTATION_VENDOR_ID

        @Deprecated
        public static final Attributes.Name IMPLEMENTATION_VENDOR_ID
        Deprecated. Extension mechanism will be removed in a future release. Use class path instead.
        Name object for Implementation-Vendor-Id manifest attribute used for package versioning.
        See Also:
        Optional Package Versioning
      • IMPLEMENTATION_URL

        @Deprecated
        public static final Attributes.Name IMPLEMENTATION_URL
        Deprecated. Extension mechanism will be removed in a future release. Use class path instead.
        Name object for Implementation-URL manifest attribute used for package versioning.
        See Also:
        Optional Package Versioning
    • Constructor Detail

      • Name

        public Name(String name)
        Constructs a new attribute name using the given string name.
        Parameters:
        name - the attribute string name
        Throws:
        IllegalArgumentException - if the attribute name was invalid
        NullPointerException - if the attribute name was null
Skip navigation links
Java™ Platform
Standard Ed. 8

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

Scripting on this page tracks web page traffic, but does not change the content in any way.

AltStyle によって変換されたページ (->オリジナル) /