Class Attributes.Name
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.
- Since:
- 1.2
- External Specifications
-
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
Methods declared in class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
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
-
hashCode
-
toString
-