Added in API level 1

Name

open class Name
kotlin.Any
   ↳ 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

Public constructors
Name(name: String!)

Constructs a new attribute name using the given string name.

Public methods
open Boolean
equals(other: Any?)

Compares this attribute name to another for equality.

open Int

Computes the hash value for this attribute name.

open String

Returns the attribute name as a String.

Properties
static Attributes.Name!

Name object for Class-Path manifest attribute.

static Attributes.Name!

Name object for Content-Type manifest attribute.

static Attributes.Name!

Name object for Extension-Installation manifest attribute.

static Attributes.Name!

Name object for Extension-List manifest attribute used for the extension mechanism that is no longer supported.

static Attributes.Name!

Name object for Extension-Name manifest attribute used for the extension mechanism that is no longer supported.

static Attributes.Name!

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

static Attributes.Name!

Name object for Implementation-URL manifest attribute.

static Attributes.Name!

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

static Attributes.Name!

Name object for Implementation-Vendor-Id manifest attribute.

static Attributes.Name!

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

static Attributes.Name!

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

static Attributes.Name!

Name object for Manifest-Version manifest attribute.

static Attributes.Name!

Name object for Sealed manifest attribute used for sealing.

static Attributes.Name!

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

static Attributes.Name!

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

static Attributes.Name!

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

static Attributes.Name!

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

Public constructors

Name

Added in API level 1
Name(name: String!)

Constructs a new attribute name using the given string name.

Parameters
name String!: the attribute string name
Exceptions
java.lang.IllegalArgumentException if the attribute name was invalid
java.lang.NullPointerException if the attribute name was null

Public methods

equals

Added in API level 1
open fun equals(other: Any?): Boolean

Compares this attribute name to another for equality.

Parameters
obj the reference object with which to compare.
o the object to compare
Return
Boolean true if this attribute name is equal to the specified attribute object

hashCode

Added in API level 1
open fun hashCode(): Int

Computes the hash value for this attribute name.

Return
Int a hash code value for this object.

toString

Added in API level 1
open fun toString(): String

Returns the attribute name as a String.

Return
String a string representation of the object.

Properties

CLASS_PATH

Added in API level 1
static val CLASS_PATH: Attributes.Name!

Name object for Class-Path manifest attribute.

See Also

    CONTENT_TYPE

    Added in API level 1
    static val CONTENT_TYPE: Attributes.Name!

    Name object for Content-Type manifest attribute.

    EXTENSION_INSTALLATION

    Added in API level 1
    Deprecated in API level 26
    static val EXTENSION_INSTALLATION: Attributes.Name!

    Deprecated: Extension mechanism is no longer supported.

    Name object for Extension-Installation manifest attribute.

    EXTENSION_LIST

    Added in API level 1
    static val EXTENSION_LIST: Attributes.Name!

    Name object for Extension-List manifest attribute used for the extension mechanism that is no longer supported.

    EXTENSION_NAME

    Added in API level 1
    static val EXTENSION_NAME: Attributes.Name!

    Name object for Extension-Name manifest attribute used for the extension mechanism that is no longer supported.

    IMPLEMENTATION_TITLE

    Added in API level 1
    static val IMPLEMENTATION_TITLE: Attributes.Name!

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

    IMPLEMENTATION_URL

    Added in API level 1
    Deprecated in API level 26
    static val IMPLEMENTATION_URL: Attributes.Name!

    Deprecated: Extension mechanism is no longer supported.

    Name object for Implementation-URL manifest attribute.

    IMPLEMENTATION_VENDOR

    Added in API level 1
    static val IMPLEMENTATION_VENDOR: Attributes.Name!

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

    IMPLEMENTATION_VENDOR_ID

    Added in API level 1
    Deprecated in API level 26
    static val IMPLEMENTATION_VENDOR_ID: Attributes.Name!

    Deprecated: Extension mechanism is no longer supported.

    Name object for Implementation-Vendor-Id manifest attribute.

    IMPLEMENTATION_VERSION

    Added in API level 1
    static val IMPLEMENTATION_VERSION: Attributes.Name!

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

    MAIN_CLASS

    Added in API level 1
    static val MAIN_CLASS: Attributes.Name!

    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
    static val MANIFEST_VERSION: Attributes.Name!

    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
      static val SEALED: Attributes.Name!

      Name object for Sealed manifest attribute used for sealing.

      See Also

        SIGNATURE_VERSION

        Added in API level 1
        static val SIGNATURE_VERSION: Attributes.Name!

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

        See Also

          SPECIFICATION_TITLE

          Added in API level 1
          static val SPECIFICATION_TITLE: Attributes.Name!

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

          SPECIFICATION_VENDOR

          Added in API level 1
          static val SPECIFICATION_VENDOR: Attributes.Name!

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

          SPECIFICATION_VERSION

          Added in API level 1
          static val SPECIFICATION_VERSION: Attributes.Name!

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