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