java.lang.Object
java.util.jar.Attributes.Name
正在封闭类:Attributes
public static class Attributes.Nameextends Object
Attributes.Name 类表示存储在此 Map 中的一个属性名称。有效的属性名称是区分大小写的,只能取 [0-9a-zA-Z_-] 集合中的 ASCII 字符,且长度不能超过 70 个字符。属性值可以包含任意字符,当属性值被写入输出流时将进行 UTF8 编码。有关有效属性名称和值的更多信息,请参阅 JAR File Specification。
字段摘要
staticAttributes.Name
CLASS_PATH
Class-Path 的 Name 对象具有的属性。
staticAttributes.Name
CONTENT_TYPE
Content-Type 的 Name 对象具有的属性。
staticAttributes.Name
EXTENSION_INSTALLATION
Extension-Name 的 Name 对象具有的属性,用于声明已安装扩展上的依赖项。
staticAttributes.Name
EXTENSION_LIST
Extension-List 的 Name 对象具有的属性,用于声明已安装扩展上的依赖项。
staticAttributes.Name
EXTENSION_NAME
Extension-Name 的 Name 对象具有的属性,用于声明已安装扩展上的依赖项。
staticAttributes.Name
IMPLEMENTATION_TITLE
Implementation-Title 的 Name 对象给出了用于包的版本控制的属性。
staticAttributes.Name
IMPLEMENTATION_URL
Implementation-Vendor-URL 的 Name 对象给出了用于包的版本控制的属性。
staticAttributes.Name
IMPLEMENTATION_VENDOR
Implementation-Vendor 的 Name 对象给出了用于包的版本控制的属性。
staticAttributes.Name
IMPLEMENTATION_VENDOR_ID
Implementation-Vendor-Id 的 Name 对象给出了用于包的版本控制的属性。
staticAttributes.Name
IMPLEMENTATION_VERSION
Implementation-Version 的 Name 对象给出了用于包的版本控制的属性。
staticAttributes.Name
MAIN_CLASS
Main-Class 的 Name 对象具有的属性,用于启动打包在 JAR 文件中的应用程序。
staticAttributes.Name
MANIFEST_VERSION
Manifest-Version 的 Name 对象具有的属性。
staticAttributes.Name
SEALED
Sealed 的 Name 对象给出了用于密封的属性。
staticAttributes.Name
SIGNATURE_VERSION
Signature-Version 的 Name 对象给出了签名 JAR 文件时所使用的属性。
staticAttributes.Name
SPECIFICATION_TITLE
Specification-Title 的 Name 对象给出了用于包的版本控制的属性。
staticAttributes.Name
SPECIFICATION_VENDOR
Specification-Vendor 的 Name 对象给出了用于包的版本控制的属性。
staticAttributes.Name
SPECIFICATION_VERSION
Specification-Version 的 Name 对象给出了用于包的版本控制的属性。
构造方法摘要
Attributes.Name(Stringname)
用给定字符串名称构造一个新的属性名称。
方法摘要
boolean
equals(Objecto)
将此属性名称与另一个属性名称进行相等性比较。
int
hashCode()
计算此属性名称的哈希值。
String
toString()
返回字符串形式的属性名称。
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
字段详细信息
MANIFEST_VERSION
public static final Attributes.Name MANIFEST_VERSION
Manifest-Version 的 Name 对象具有的属性。此属性指示 JAR 文件清单所遵守的清单标准的版本号。
另请参见:Manifest and Signature Specification
SIGNATURE_VERSION
public static final Attributes.Name SIGNATURE_VERSION
Signature-Version 的 Name 对象给出了签名 JAR 文件时所使用的属性。
另请参见:Manifest and Signature Specification
CONTENT_TYPE
public static final Attributes.Name CONTENT_TYPE
Content-Type 的 Name 对象具有的属性。
CLASS_PATH
public static final Attributes.Name CLASS_PATH
Class-Path 的 Name 对象具有的属性。扩展包可以使用此属性来查找包含所需类的其他 JAR 文件。
另请参见:Extensions Specification
MAIN_CLASS
public static final Attributes.Name MAIN_CLASS
Main-Class 的 Name 对象具有的属性,用于启动打包在 JAR 文件中的应用程序。Main-Class 属性与 java 应用程序启动器的 -jar 命令行选项一起使用。
SEALED
public static final Attributes.Name SEALED
Sealed 的 Name 对象给出了用于密封的属性。
另请参见:Extension Sealing
EXTENSION_LIST
public static final Attributes.Name EXTENSION_LIST
Extension-List 的 Name 对象具有的属性,用于声明已安装扩展上的依赖项。
另请参见:Installed extension dependency
EXTENSION_NAME
public static final Attributes.Name EXTENSION_NAME
Extension-Name 的 Name 对象具有的属性,用于声明已安装扩展上的依赖项。
另请参见:Installed extension dependency
EXTENSION_INSTALLATION
public static final Attributes.Name EXTENSION_INSTALLATION
Extension-Name 的 Name 对象具有的属性,用于声明已安装扩展上的依赖项。
另请参见:Installed extension dependency
IMPLEMENTATION_TITLE
public static final Attributes.Name IMPLEMENTATION_TITLE
Implementation-Title 的 Name 对象给出了用于包的版本控制的属性。
另请参见:Java Product Versioning Specification
IMPLEMENTATION_VERSION
public static final Attributes.Name IMPLEMENTATION_VERSION
Implementation-Version 的 Name 对象给出了用于包的版本控制的属性。
另请参见:Java Product Versioning Specification
IMPLEMENTATION_VENDOR
public static final Attributes.Name IMPLEMENTATION_VENDOR
Implementation-Vendor 的 Name 对象给出了用于包的版本控制的属性。
另请参见:Java Product Versioning Specification
IMPLEMENTATION_VENDOR_ID
public static final Attributes.Name IMPLEMENTATION_VENDOR_ID
Implementation-Vendor-Id 的 Name 对象给出了用于包的版本控制的属性。
另请参见:Java Product Versioning Specification
IMPLEMENTATION_URL
public static final Attributes.Name IMPLEMENTATION_URL
Implementation-Vendor-URL 的 Name 对象给出了用于包的版本控制的属性。
另请参见:Java Product Versioning Specification
SPECIFICATION_TITLE
public static final Attributes.Name SPECIFICATION_TITLE
Specification-Title 的 Name 对象给出了用于包的版本控制的属性。
另请参见:Java Product Versioning Specification
SPECIFICATION_VERSION
public static final Attributes.Name SPECIFICATION_VERSION
Specification-Version 的 Name 对象给出了用于包的版本控制的属性。
另请参见:Java Product Versioning Specification
SPECIFICATION_VENDOR
public static final Attributes.Name SPECIFICATION_VENDOR
Specification-Vendor 的 Name 对象给出了用于包的版本控制的属性。
另请参见:Java Product Versioning Specification
构造方法详细信息
Attributes.Name
public Attributes.Name(Stringname)
用给定字符串名称构造一个新的属性名称。
参数:name – 属性字符串名称抛出:IllegalArgumentException – 如果属性名称无效
NullPointerException – 如果属性名称为 null
方法详细信息
equals
public boolean equals(Objecto)
将此属性名称与另一个属性名称进行相等性比较。
覆盖:类 Object 中的 equals
参数:o – 要比较的对象返回:如果此属性名称与指定的属性对象相等,则返回 true另请参见:Object.hashCode(),
Hashtable
hashCode
public int hashCode()
计算此属性名称的哈希值。
覆盖:类 Object 中的 hashCode
返回:此对象的一个哈希码值。另请参见:Object.equals(java.lang.Object),
Hashtable
toString
public String toString()
返回字符串形式的属性名称。
覆盖:类 Object 中的 toString
返回:该对象的字符串表示形式。