JavaTM 2 Platform
Standard Ed. 6

類別 java.util.Properties
的使用

使用 Properties 的軟體套件
java.awt 包含用於創建使用者介面和繪製圖形圖像的全部類別。 
java.lang 提供利用 Java 程式語言進行程序設計的基礎類別。 
java.rmi.activation 為 RMI 物件啟動提供支持。 
java.security 為安全框架提供類別和介面。 
java.sql 提供使用 JavaTM 程式語言存取並處理存儲在資料源(通常是一個關聯型資料庫)中的資料的 API。 
java.util 包含 collection 框架、遺留的 collection 類別、事件模型、日期和時間設施、國際化和各種實用工具類別(字元串標記產生器、隨機數產生器和位元陣列)。 
javax.naming 為存取命名服務提供類別和介面。 
javax.xml.transform 此套件定義了用於處理轉換指令,以及執行從源到結果的轉換的一般 API。 
org.omg.CORBA 提供 OMG CORBA API 到 JavaTM 程式語言的映射,包括 ORB 類別,如果已實作該類別,則開發人員可以使用此類別作為全功能物件請求代理(Object Request Broker,ORB)。 
 

java.awt 中 Properties 的使用
 

參數型別為 Properties 的 java.awt 中的方法
abstract  PrintJob Toolkit.getPrintJob(Frame frame, String jobtitle, Properties props)
          獲取一個 PrintJob 物件,該物件是在工具套件平臺上初始化某個列印操作的結果。
 

java.lang 中 Properties 的使用
 

返回 Properties 的 java.lang 中的方法
static Properties System.getProperties()
          確定當前的系統屬性。
 

參數型別為 Properties 的 java.lang 中的方法
static void System.setProperties(Properties props)
          將系統屬性設置為 Properties 參數。
 

java.rmi.activation 中 Properties 的使用
 

返回 Properties 的 java.rmi.activation 中的方法
 Properties ActivationGroupDesc.getPropertyOverrides()
          返回組的覆寫屬性列表。
 

參數型別為 Properties 的 java.rmi.activation 中的建構子
ActivationGroupDesc(Properties overrides, ActivationGroupDesc.CommandEnvironment cmd)
          使用組實作的系統預設值和程式碼基來建構一個組描述符。
ActivationGroupDesc(String className, String location, MarshalledObject<?> data, Properties overrides, ActivationGroupDesc.CommandEnvironment cmd)
          指定一個用於該組的替代組實作和執行環境。
 

java.security 中 Properties 的使用
 

java.security 中 Properties 的子類別
 class AuthProvider
          此類別定義 provider 的登錄和註銷方法。
 class Provider
          此類別表示 Java 安全 API "provider",這裡 provider 實作了 Java 安全性的一部分或者全部。
 

java.sql 中 Properties 的使用
 

返回 Properties 的 java.sql 中的方法
 Properties Connection.getClientInfo()
          返回一個列表,它包含驅動程序支持的每個客戶端資訊屬性的名稱和當前值。
 

參數型別為 Properties 的 java.sql 中的方法
 Connection Driver.connect(String url, Properties info)
          試圖創建一個到給定 URL 的資料庫連接。
static Connection DriverManager.getConnection(String url, Properties info)
          試圖建立到給定資料庫 URL 的連接。
 DriverPropertyInfo[] Driver.getPropertyInfo(String url, Properties info)
          獲得此驅動程序的可能屬性資訊。
 void Connection.setClientInfo(Properties properties)
          設置連接的客戶端資訊屬性的值。
 

java.util 中 Properties 的使用
 

宣告為 Properties 的 java.util 中的欄位
protected  Properties Properties.defaults
          一個屬性列表,包含屬性列表中所有未找到值的鍵的預設值。
 

參數型別為 Properties 的 java.util 中的建構子
Properties(Properties defaults)
          創建一個帶有指定預設值的空屬性列表。
 

javax.naming 中 Properties 的使用
 

宣告為 Properties 的 javax.naming 中的欄位
protected  Properties CompoundName.mySyntax
          此組合名稱的語法屬性。
 

參數型別為 Properties 的 javax.naming 中的建構子
CompoundName(Enumeration<String> comps, Properties syntax)
          使用 comps 和 syntax 指定的元件建構一個新的組合名稱實例。
CompoundName(String n, Properties syntax)
          通過解析使用提供的 syntax 屬性所指定的語法的字元串 n 來建構一個新的組合名稱實例。
 

javax.xml.transform 中 Properties 的使用
 

返回 Properties 的 javax.xml.transform 中的方法
 Properties Templates.getOutputProperties()
          獲取對應於有效 xsl:output 元素的屬性。
abstract  Properties Transformer.getOutputProperties()
          獲取轉換的輸出屬性的副本。
 

參數型別為 Properties 的 javax.xml.transform 中的方法
abstract  void Transformer.setOutputProperties(Properties oformat)
          設置轉換的輸出屬性。
 

org.omg.CORBA 中 Properties 的使用
 

參數型別為 Properties 的 org.omg.CORBA 中的方法
static ORB ORB.init(Applet app, Properties props)
          為 applet 創建一個新的 ORB 實例。
static ORB ORB.init(String[] args, Properties props)
          為獨立的應用程序創建一個新的 ORB 實例。
protected abstract  void ORB.set_parameters(Applet app, Properties props)
          允許使用給定 applet 和參數初始化 ORB 實作。
protected abstract  void ORB.set_parameters(String[] args, Properties props)
          允許使用給定的參數和屬性初始化 ORB 實作。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

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