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