- java.lang.Object
- 
- java.util.jar.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 SummaryFields Modifier and Type Field Description static Attributes.NameCLASS_PATHNameobject forClass-Pathmanifest attribute.static Attributes.NameCONTENT_TYPENameobject forContent-Typemanifest attribute.static Attributes.NameEXTENSION_INSTALLATIONDeprecated.Extension mechanism is no longer supported.static Attributes.NameEXTENSION_LISTNameobject forExtension-Listmanifest attribute used for the extension mechanism that is no longer supported.static Attributes.NameEXTENSION_NAMENameobject forExtension-Namemanifest attribute.static Attributes.NameIMPLEMENTATION_TITLENameobject forImplementation-Titlemanifest attribute used for package versioning.static Attributes.NameIMPLEMENTATION_URLDeprecated.Extension mechanism is no longer supported.static Attributes.NameIMPLEMENTATION_VENDORNameobject forImplementation-Vendormanifest attribute used for package versioning.static Attributes.NameIMPLEMENTATION_VENDOR_IDDeprecated.Extension mechanism is no longer supported.static Attributes.NameIMPLEMENTATION_VERSIONNameobject forImplementation-Versionmanifest attribute used for package versioning.static Attributes.NameMAIN_CLASSNameobject forMain-Classmanifest attribute used for launching applications packaged in JAR files.static Attributes.NameMANIFEST_VERSIONNameobject forManifest-Versionmanifest attribute.static Attributes.NameMULTI_RELEASENameobject forMulti-Releasemanifest attribute that indicates this is a multi-release JAR file.static Attributes.NameSEALEDNameobject forSealedmanifest attribute used for sealing.static Attributes.NameSIGNATURE_VERSIONNameobject forSignature-Versionmanifest attribute used when signing JAR files.static Attributes.NameSPECIFICATION_TITLENameobject forSpecification-Titlemanifest attribute used for package versioning.static Attributes.NameSPECIFICATION_VENDORNameobject forSpecification-Vendormanifest attribute used for package versioning.static Attributes.NameSPECIFICATION_VERSIONNameobject forSpecification-Versionmanifest attribute used for package versioning.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Compares this attribute name to another for equality.inthashCode()Computes the hash value for this attribute name.StringtoString()Returns the attribute name as a String.
 
- 
- 
- 
Field Detail- 
MANIFEST_VERSIONpublic static final Attributes.Name MANIFEST_VERSION Nameobject forManifest-Versionmanifest 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
 
 - 
SIGNATURE_VERSIONpublic static final Attributes.Name SIGNATURE_VERSION Nameobject forSignature-Versionmanifest attribute used when signing JAR files.- See Also:
- Manifest and Signature Specification
 
 - 
CONTENT_TYPEpublic static final Attributes.Name CONTENT_TYPE Nameobject forContent-Typemanifest attribute.
 - 
CLASS_PATHpublic static final Attributes.Name CLASS_PATH Nameobject forClass-Pathmanifest attribute.- See Also:
- JAR file specification
 
 - 
MAIN_CLASSpublic static final Attributes.Name MAIN_CLASS Nameobject forMain-Classmanifest attribute used for launching applications packaged in JAR files. TheMain-Classattribute is used in conjunction with the-jarcommand-line option of thejavaapplication launcher.
 - 
SEALEDpublic static final Attributes.Name SEALED Nameobject forSealedmanifest attribute used for sealing.- See Also:
- Package Sealing
 
 - 
EXTENSION_LISTpublic static final Attributes.Name EXTENSION_LIST Nameobject forExtension-Listmanifest attribute used for the extension mechanism that is no longer supported.
 - 
EXTENSION_NAMEpublic static final Attributes.Name EXTENSION_NAME Nameobject forExtension-Namemanifest attribute. used for the extension mechanism that is no longer supported.
 - 
EXTENSION_INSTALLATION@Deprecated public static final Attributes.Name EXTENSION_INSTALLATION Deprecated.Extension mechanism is no longer supported.Nameobject forExtension-Installationmanifest attribute.
 - 
IMPLEMENTATION_TITLEpublic static final Attributes.Name IMPLEMENTATION_TITLE Nameobject forImplementation-Titlemanifest attribute used for package versioning.
 - 
IMPLEMENTATION_VERSIONpublic static final Attributes.Name IMPLEMENTATION_VERSION Nameobject forImplementation-Versionmanifest attribute used for package versioning.
 - 
IMPLEMENTATION_VENDORpublic static final Attributes.Name IMPLEMENTATION_VENDOR Nameobject forImplementation-Vendormanifest attribute used for package versioning.
 - 
IMPLEMENTATION_VENDOR_ID@Deprecated public static final Attributes.Name IMPLEMENTATION_VENDOR_ID Deprecated.Extension mechanism is no longer supported.Nameobject forImplementation-Vendor-Idmanifest attribute.
 - 
IMPLEMENTATION_URL@Deprecated public static final Attributes.Name IMPLEMENTATION_URL Deprecated.Extension mechanism is no longer supported.Nameobject forImplementation-URLmanifest attribute.
 - 
SPECIFICATION_TITLEpublic static final Attributes.Name SPECIFICATION_TITLE Nameobject forSpecification-Titlemanifest attribute used for package versioning.
 - 
SPECIFICATION_VERSIONpublic static final Attributes.Name SPECIFICATION_VERSION Nameobject forSpecification-Versionmanifest attribute used for package versioning.
 - 
SPECIFICATION_VENDORpublic static final Attributes.Name SPECIFICATION_VENDOR Nameobject forSpecification-Vendormanifest attribute used for package versioning.
 - 
MULTI_RELEASEpublic static final Attributes.Name MULTI_RELEASE Nameobject forMulti-Releasemanifest attribute that indicates this is a multi-release JAR file.- Since:
- 9
 
 
- 
 - 
Constructor Detail- 
Namepublic 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
 
 
- 
 - 
Method Detail- 
equalspublic boolean equals(Object o) Compares this attribute name to another for equality.- Overrides:
- equalsin class- Object
- Parameters:
- o- the object to compare
- Returns:
- true if this attribute name is equal to the specified attribute object
- See Also:
- Object.hashCode(),- HashMap
 
 - 
hashCodepublic int hashCode() Computes the hash value for this attribute name.- Overrides:
- hashCodein class- Object
- Returns:
- a hash code value for this object.
- See Also:
- Object.equals(java.lang.Object),- System.identityHashCode(java.lang.Object)
 
 
- 
 
-