|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectorg.omg.CORBA.ServiceInformationHolder
public final class ServiceInformationHolder
ServiceInformation 的 Holder。關於 Holder 檔案的更多資訊,請參閱“產生的檔案:Holder 檔案”。
用於 ServiceInformation 物件的 Holder 類別,用來存儲 IDL 方法中的 "out" 和 "inout" 參數。如果 IDL 方法簽章將一個 IDL xxx 作為 "out" 或 "inout" 參數,則開發人員必須傳遞一個 ServiceInformationHolder 實例作為方法調用中的相應參數;對於 "inout" 參數,開發人員還必須填充將被發送到伺服器的 "in" 值。在方法調用返回之前,ORB 將填充與從伺服器返回的 "out" 值對應的值。
如果 myServiceInformationHolder 是 ServiceInformationHolder 實例,則可以使用 myServiceInformationHolder.value 存取存儲在其 value 欄位中的值。
| 欄位摘要 | |
|---|---|
ServiceInformation |
value
此 ServiceInformationHolder 物件保存在其 value 欄位中的 ServiceInformation 值。 |
| 建構子摘要 | |
|---|---|
ServiceInformationHolder()
建構一個新的 ServiceInformationHolder 物件,將其 value 欄位初始化為 null。 |
|
ServiceInformationHolder(ServiceInformation arg)
建構一個新的 ServiceInformationHolder 物件,將其 value 欄位初始化為給定的 ServiceInformation 物件。 |
|
| 方法摘要 | |
|---|---|
void |
_read(InputStream in)
從輸入串流 in 中讀取已解組資料,並將它賦予此 ServiceInformationHolder 物件的 value 欄位。 |
TypeCode |
_type()
檢索對應於此 ServiceInformationHolder 物件的 value 欄位中所保存的值的 TypeCode 物件。 |
void |
_write(OutputStream out)
將此 ServiceInformationHolder 物件的 value 欄位中的值編組到輸出串流 out。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 欄位詳細資訊 |
|---|
public ServiceInformation value
ServiceInformationHolder 物件保存在其 value 欄位中的 ServiceInformation 值。
| 建構子詳細資訊 |
|---|
public ServiceInformationHolder()
ServiceInformationHolder 物件,將其 value 欄位初始化為 null。
public ServiceInformationHolder(ServiceInformation arg)
ServiceInformationHolder 物件,將其 value 欄位初始化為給定的 ServiceInformation 物件。
arg - ServiceInformation 物件,用來初始化新建 ServiceInformationHolder 物件的 value 欄位| 方法詳細資訊 |
|---|
public void _write(OutputStream out)
ServiceInformationHolder 物件的 value 欄位中的值編組到輸出串流 out。
Streamable 中的 _writeout - 將包含 CDR 格式資料的 OutputStream 物件public void _read(InputStream in)
in 中讀取已解組資料,並將它賦予此 ServiceInformationHolder 物件的 value 欄位。
Streamable 中的 _readin - 套件含在線獲取的 CDR 格式資料的 InputStream 物件。public TypeCode _type()
ServiceInformationHolder 物件的 value 欄位中所保存的值的 TypeCode 物件。
Streamable 中的 _typeServiceInformationHolder 物件中所保存值的型別程式碼
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。