JavaTM 2 Platform
Standard Ed. 6

類別 java.util.jar.Attributes.Name
的使用

使用 Attributes.Name 的軟體套件
java.util.jar 提供讀寫 JAR (Java ARchive) 檔案格式的類別,該格式基於具有可選清單檔案的標準 ZIP 檔案格式。 
 

java.util.jar 中 Attributes.Name 的使用
 

宣告為 Attributes.Name 的 java.util.jar 中的欄位
static Attributes.Name Attributes.Name.CLASS_PATH
          Class-Path 的 Name 物件具有的屬性。
static Attributes.Name Attributes.Name.CONTENT_TYPE
          Content-Type 的 Name 物件具有的屬性。
static Attributes.Name Attributes.Name.EXTENSION_INSTALLATION
          Extension-Name 的 Name 物件具有的屬性,用於宣告已安裝擴展上的依賴項。
static Attributes.Name Attributes.Name.EXTENSION_LIST
          Extension-List 的 Name 物件具有的屬性,用於宣告已安裝擴展上的依賴項。
static Attributes.Name Attributes.Name.EXTENSION_NAME
          Extension-Name 的 Name 物件具有的屬性,用於宣告已安裝擴展上的依賴項。
static Attributes.Name Attributes.Name.IMPLEMENTATION_TITLE
          Implementation-Title 的 Name 物件給出了用於套件的版本控制的屬性。
static Attributes.Name Attributes.Name.IMPLEMENTATION_URL
          Implementation-Vendor-URL 的 Name 物件給出了用於套件的版本控制的屬性。
static Attributes.Name Attributes.Name.IMPLEMENTATION_VENDOR
          Implementation-Vendor 的 Name 物件給出了用於套件的版本控制的屬性。
static Attributes.Name Attributes.Name.IMPLEMENTATION_VENDOR_ID
          Implementation-Vendor-Id 的 Name 物件給出了用於套件的版本控制的屬性。
static Attributes.Name Attributes.Name.IMPLEMENTATION_VERSION
          Implementation-Version 的 Name 物件給出了用於套件的版本控制的屬性。
static Attributes.Name Attributes.Name.MAIN_CLASS
          Main-Class 的 Name 物件具有的屬性,用於啟動打包在 JAR 檔案中的應用程序。
static Attributes.Name Attributes.Name.MANIFEST_VERSION
          Manifest-Version 的 Name 物件具有的屬性。
static Attributes.Name Attributes.Name.SEALED
          Sealed 的 Name 物件給出了用於密封的屬性。
static Attributes.Name Attributes.Name.SIGNATURE_VERSION
          Signature-Version 的 Name 物件給出了簽章 JAR 檔案時所使用的屬性。
static Attributes.Name Attributes.Name.SPECIFICATION_TITLE
          Specification-Title 的 Name 物件給出了用於套件的版本控制的屬性。
static Attributes.Name Attributes.Name.SPECIFICATION_VENDOR
          Specification-Vendor 的 Name 物件給出了用於套件的版本控制的屬性。
static Attributes.Name Attributes.Name.SPECIFICATION_VERSION
          Specification-Version 的 Name 物件給出了用於套件的版本控制的屬性。
 

參數型別為 Attributes.Name 的 java.util.jar 中的方法
 String Attributes.getValue(Attributes.Name name)
          返回指定的 Attributes.Name 的值,如果未找到,則返回 null。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。