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