public final class FixedHolder extends Object implements Streamable
FixedHolder是IDL类型“fixed”的值的容器类,它被映射到Java类java.math.BigDecimal。 它通常用于存储“out”和“inout”IDL方法参数。 如果IDL方法签名具有固定为“out”或“inout”参数,则程序员必须将FixedHolder的实例作为方法调用中的相应参数传递; 对于“inout”参数,程序员还必须填写要发送到服务器的“in”值。 在方法调用返回之前,ORB将填写与服务器返回的“out”值对应的包含的值。
| Modifier and Type | Field and Description | 
|---|---|
| BigDecimal | value
              FixedHolder持有的值 
             | 
| Constructor and Description | 
|---|
| FixedHolder()
              构造FixedHolder而不初始化包含的值。 
             | 
| FixedHolder(BigDecimal initial)
              构造FixedHolder并用给定的值初始化它。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| void | _read(InputStream input)
              从输入流读取固定点值,并将其存储在值成员中。 
             | 
| TypeCode | _type()
              返回此持有人对象的 
              TypeCode。 | 
| void | _write(OutputStream output)
              将此持有人存储的固定点值写入 
              OutputStream。 | 
public BigDecimal value
public FixedHolder()
public FixedHolder(BigDecimal initial)
initial - 用于初始化FixedHolder的值 
           public void _read(InputStream input)
_read在接口 
            Streamable 
           input - 要阅读的 
            InputStream 。 
           public void _write(OutputStream output)
OutputStream存储的固定点值写入 
           OutputStream 。 
          _write在界面 
            Streamable 
           output - 
            OutputStream写入。 
           public TypeCode _type()
TypeCode 。 
          _type在界面 
            Streamable 
           TypeCode对象。 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.