Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Attributes.Name

public static class Attributes.Name
extends Object

java.lang.Object
   ↳ java.util.jar.Attributes.Name


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.

Summary

Fields

public static final Attributes.Name CLASS_PATH

Name object for Class-Path manifest attribute.

public static final Attributes.Name CONTENT_TYPE

Name object for Content-Type manifest attribute.

public static final Attributes.Name EXTENSION_INSTALLATION

Name object for Extension-Name manifest attribute used for declaring dependencies on installed extensions.

public static final Attributes.Name EXTENSION_LIST

Name object for Extension-List manifest attribute used for declaring dependencies on installed extensions.

public static final Attributes.Name EXTENSION_NAME

Name object for Extension-Name manifest attribute used for declaring dependencies on installed extensions.

public static final Attributes.Name IMPLEMENTATION_TITLE

Name object for Implementation-Title manifest attribute used for package versioning.

public static final Attributes.Name IMPLEMENTATION_URL

Name object for Implementation-Vendor-URL manifest attribute used for package versioning.

public static final Attributes.Name IMPLEMENTATION_VENDOR

Name object for Implementation-Vendor manifest attribute used for package versioning.

public static final Attributes.Name IMPLEMENTATION_VENDOR_ID

Name object for Implementation-Vendor-Id manifest attribute used for package versioning.

public static final Attributes.Name IMPLEMENTATION_VERSION

Name object for Implementation-Version manifest attribute used for package versioning.

public static final Attributes.Name MAIN_CLASS

Name object for Main-Class manifest attribute used for launching applications packaged in JAR files.

public static final Attributes.Name MANIFEST_VERSION

Name object for Manifest-Version manifest attribute.

public static final Attributes.Name SEALED

Name object for Sealed manifest attribute used for sealing.

public static final Attributes.Name SIGNATURE_VERSION

Name object for Signature-Version manifest attribute used when signing JAR files.

public static final Attributes.Name SPECIFICATION_TITLE

Name object for Specification-Title manifest attribute used for package versioning.

public static final Attributes.Name SPECIFICATION_VENDOR

Name object for Specification-Vendor manifest attribute used for package versioning.

public static final Attributes.Name SPECIFICATION_VERSION

Name object for Specification-Version manifest attribute used for package versioning.

Public constructors

Attributes.Name(String name)

Constructs a new attribute name using the given string name.

Public methods

boolean equals(Object o)

Compares this attribute name to another for equality.

int hashCode()

Computes the hash value for this attribute name.

String toString()

Returns the attribute name as a String.

Inherited methods

From class java.lang.Object

Fields

CLASS_PATH

Added in API level 1
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:

CONTENT_TYPE

Added in API level 1
Attributes.Name CONTENT_TYPE

Name object for Content-Type manifest attribute.

EXTENSION_INSTALLATION

Added in API level 1
Attributes.Name EXTENSION_INSTALLATION

Name object for Extension-Name manifest attribute used for declaring dependencies on installed extensions.

See also:

EXTENSION_LIST

Added in API level 1
Attributes.Name EXTENSION_LIST

Name object for Extension-List manifest attribute used for declaring dependencies on installed extensions.

See also:

EXTENSION_NAME

Added in API level 1
Attributes.Name EXTENSION_NAME

Name object for Extension-Name manifest attribute used for declaring dependencies on installed extensions.

See also:

IMPLEMENTATION_TITLE

Added in API level 1
Attributes.Name IMPLEMENTATION_TITLE

Name object for Implementation-Title manifest attribute used for package versioning.

See also:

IMPLEMENTATION_URL

Added in API level 1
Attributes.Name IMPLEMENTATION_URL

Name object for Implementation-Vendor-URL manifest attribute used for package versioning.

See also:

IMPLEMENTATION_VENDOR

Added in API level 1
Attributes.Name IMPLEMENTATION_VENDOR

Name object for Implementation-Vendor manifest attribute used for package versioning.

See also:

IMPLEMENTATION_VENDOR_ID

Added in API level 1
Attributes.Name IMPLEMENTATION_VENDOR_ID

Name object for Implementation-Vendor-Id manifest attribute used for package versioning.

See also:

IMPLEMENTATION_VERSION

Added in API level 1
Attributes.Name IMPLEMENTATION_VERSION

Name object for Implementation-Version manifest attribute used for package versioning.

See also:

MAIN_CLASS

Added in API level 1
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.

MANIFEST_VERSION

Added in API level 1
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:

SEALED

Added in API level 1
Attributes.Name SEALED

Name object for Sealed manifest attribute used for sealing.

See also:

SIGNATURE_VERSION

Added in API level 1
Attributes.Name SIGNATURE_VERSION

Name object for Signature-Version manifest attribute used when signing JAR files.

See also:

SPECIFICATION_TITLE

Added in API level 1
Attributes.Name SPECIFICATION_TITLE

Name object for Specification-Title manifest attribute used for package versioning.

See also:

SPECIFICATION_VENDOR

Added in API level 1
Attributes.Name SPECIFICATION_VENDOR

Name object for Specification-Vendor manifest attribute used for package versioning.

See also:

SPECIFICATION_VERSION

Added in API level 1
Attributes.Name SPECIFICATION_VERSION

Name object for Specification-Version manifest attribute used for package versioning.

See also:

Public constructors

Attributes.Name

Added in API level 1
Attributes.Name (String name)

Constructs a new attribute name using the given string name.

Parameters
name String: the attribute string name
Throws
IllegalArgumentException if the attribute name was invalid
NullPointerException if the attribute name was null

Public methods

equals

Added in API level 1
boolean equals (Object o)

Compares this attribute name to another for equality.

Parameters
o Object: the object to compare
Returns
boolean true if this attribute name is equal to the specified attribute object

hashCode

Added in API level 1
int hashCode ()

Computes the hash value for this attribute name.

Returns
int a hash code value for this object.

toString

Added in API level 1
String toString ()

Returns the attribute name as a String.

Returns
String a string representation of the object.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.