java.lang.Object
java.util.jar.Attributes.Name
- Enclosing class:
- Attributes
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
FieldsModifier and TypeFieldDescriptionstatic final Attributes.NameNameobject forClass-Pathmanifest attribute.static final Attributes.NameNameobject forContent-Typemanifest attribute.static final Attributes.NameDeprecated.Extension mechanism is no longer supported.static final Attributes.NameNameobject forExtension-Listmanifest attribute used for the extension mechanism that is no longer supported.static final Attributes.NameNameobject forExtension-Namemanifest attribute used for the extension mechanism that is no longer supported.static final Attributes.NameNameobject forImplementation-Titlemanifest attribute used for package versioning.static final Attributes.NameDeprecated.Extension mechanism is no longer supported.static final Attributes.NameNameobject forImplementation-Vendormanifest attribute used for package versioning.static final Attributes.NameDeprecated.Extension mechanism is no longer supported.static final Attributes.NameNameobject forImplementation-Versionmanifest attribute used for package versioning.static final Attributes.NameNameobject forMain-Classmanifest attribute used for launching applications packaged in JAR files.static final Attributes.NameNameobject forManifest-Versionmanifest attribute.static final Attributes.NameNameobject forMulti-Releasemanifest attribute that indicates this is a multi-release JAR file.static final Attributes.NameNameobject forSealedmanifest attribute used for sealing.static final Attributes.NameNameobject forSignature-Versionmanifest attribute used when signing JAR files.static final Attributes.NameNameobject forSpecification-Titlemanifest attribute used for package versioning.static final Attributes.NameNameobject forSpecification-Vendormanifest attribute used for package versioning.static final Attributes.NameNameobject forSpecification-Versionmanifest attribute used for package versioning. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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:
-
SIGNATURE_VERSION
Nameobject forSignature-Versionmanifest attribute used when signing JAR files.- See Also:
-
CONTENT_TYPE
Nameobject forContent-Typemanifest attribute. -
CLASS_PATH
Nameobject forClass-Pathmanifest attribute.- See Also:
-
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
Nameobject forSealedmanifest attribute used for sealing.- See Also:
-
EXTENSION_LIST
Nameobject forExtension-Listmanifest attribute used for the extension mechanism that is no longer supported. -
EXTENSION_NAME
Nameobject forExtension-Namemanifest attribute used for the extension mechanism that is no longer supported. -
EXTENSION_INSTALLATION
Deprecated.Extension mechanism is no longer supported.Nameobject forExtension-Installationmanifest attribute. -
IMPLEMENTATION_TITLE
Nameobject forImplementation-Titlemanifest attribute used for package versioning. -
IMPLEMENTATION_VERSION
Nameobject forImplementation-Versionmanifest attribute used for package versioning. -
IMPLEMENTATION_VENDOR
Nameobject forImplementation-Vendormanifest attribute used for package versioning. -
IMPLEMENTATION_VENDOR_ID
Deprecated.Extension mechanism is no longer supported.Nameobject forImplementation-Vendor-Idmanifest attribute. -
IMPLEMENTATION_URL
Deprecated.Extension mechanism is no longer supported.Nameobject forImplementation-URLmanifest attribute. -
SPECIFICATION_TITLE
Nameobject forSpecification-Titlemanifest attribute used for package versioning. -
SPECIFICATION_VERSION
Nameobject forSpecification-Versionmanifest attribute used for package versioning. -
SPECIFICATION_VENDOR
Nameobject forSpecification-Vendormanifest attribute used for package versioning. -
MULTI_RELEASE
Nameobject forMulti-Releasemanifest attribute that indicates this is a multi-release JAR file.- Since:
- 9
-
-
Constructor Details
-
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 Details
-
equals
Compares this attribute name to another for equality. -
hashCode
public int hashCode()Computes the hash value for this attribute name. -
toString
Returns the attribute name as a String.
-