- 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 Summary
Fields 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.
-
-
-
Field Detail
-
MANIFEST_VERSION
public 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_VERSION
public static final Attributes.Name SIGNATURE_VERSION
Nameobject forSignature-Versionmanifest attribute used when signing JAR files.- See Also:
- Manifest and Signature Specification
-
CONTENT_TYPE
public static final Attributes.Name CONTENT_TYPE
Nameobject forContent-Typemanifest attribute.
-
CLASS_PATH
public static final Attributes.Name CLASS_PATH
Nameobject forClass-Pathmanifest attribute.- See Also:
- JAR file specification
-
MAIN_CLASS
public 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.
-
SEALED
public static final Attributes.Name SEALED
Nameobject forSealedmanifest attribute used for sealing.- See Also:
- Package Sealing
-
EXTENSION_LIST
public static final Attributes.Name EXTENSION_LIST
Nameobject forExtension-Listmanifest attribute used for the extension mechanism that is no longer supported.
-
EXTENSION_NAME
public 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_TITLE
public static final Attributes.Name IMPLEMENTATION_TITLE
Nameobject forImplementation-Titlemanifest attribute used for package versioning.
-
IMPLEMENTATION_VERSION
public static final Attributes.Name IMPLEMENTATION_VERSION
Nameobject forImplementation-Versionmanifest attribute used for package versioning.
-
IMPLEMENTATION_VENDOR
public 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_TITLE
public static final Attributes.Name SPECIFICATION_TITLE
Nameobject forSpecification-Titlemanifest attribute used for package versioning.
-
SPECIFICATION_VERSION
public static final Attributes.Name SPECIFICATION_VERSION
Nameobject forSpecification-Versionmanifest attribute used for package versioning.
-
SPECIFICATION_VENDOR
public static final Attributes.Name SPECIFICATION_VENDOR
Nameobject forSpecification-Vendormanifest attribute used for package versioning.
-
MULTI_RELEASE
public static final Attributes.Name MULTI_RELEASE
Nameobject forMulti-Releasemanifest attribute that indicates this is a multi-release JAR file.- Since:
- 9
-
-
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 invalidNullPointerException- if the attribute name was null
-
-
Method Detail
-
equals
public boolean equals(Object o)
Compares this attribute name to another for equality.- Overrides:
equalsin classObject- Parameters:
o- the object to compare- Returns:
- true if this attribute name is equal to the specified attribute object
- See Also:
Object.hashCode(),HashMap
-
hashCode
public int hashCode()
Computes the hash value for this attribute name.- Overrides:
hashCodein classObject- Returns:
- a hash code value for this object.
- See Also:
Object.equals(java.lang.Object),System.identityHashCode(java.lang.Object)
-
-