- java.lang.Object
-
- org.omg.CORBA.FixedHolder
-
- All Implemented Interfaces:
-
Streamable
public final class FixedHolder extends Object implements Streamable
持有人Fixed。 有关Holder文件的更多信息,请参阅"Generated Files: Holder Files" 。FixedHolder是IDL类型“fixed”的值的容器类,它被映射到Java类java.math.BigDecimal。 它通常用于存储“out”和“inout”IDL方法参数。 如果IDL方法签名具有固定为“out”或“inout”参数,则程序员必须将FixedHolder的实例作为方法调用中的相应参数传递; 对于“inout”参数,程序员还必须填写要发送到服务器的“in”值。 在方法调用返回之前,ORB将填写与服务器返回的“out”值对应的包含的值。
-
-
Field Summary
Fields Modifier and Type Field 描述 BigDecimalvalueFixedHolder持有的值
-
构造方法摘要
构造方法 Constructor 描述 FixedHolder()构造FixedHolder而不初始化包含的值。FixedHolder(BigDecimal initial)构造FixedHolder并用给定的值初始化它。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 void_read(InputStream input)从输入流读取固定点值,并将其存储在值成员中。TypeCode_type()返回此持有人对象的TypeCode。void_write(OutputStream output)将此持有人存储的固定点值写入OutputStream。
-
-
-
字段详细信息
-
value
public BigDecimal value
FixedHolder持有的值
-
-
构造方法详细信息
-
FixedHolder
public FixedHolder()
构造FixedHolder而不初始化包含的值。
-
FixedHolder
public FixedHolder(BigDecimal initial)
构造FixedHolder并用给定的值初始化它。- 参数
-
initial- 用于初始化FixedHolder的值
-
-
方法详细信息
-
_read
public void _read(InputStream input)
从输入流读取固定点值,并将其存储在值成员中。- Specified by:
-
_read在接口Streamable - 参数
-
input- 要阅读的InputStream。
-
_write
public void _write(OutputStream output)
将此持有OutputStream存储的固定点值写入OutputStream。- Specified by:
-
_write接口Streamable - 参数
-
output- 要写入的OutputStream。
-
_type
public TypeCode _type()
返回此持有人对象的TypeCode。- Specified by:
-
_type在接口Streamable - 结果
-
TypeCode对象。
-
-