public final class ValueBaseHolder extends Object implements Streamable
要的Holder类, java.io.Serializable ,其用于存储“out”和“INOUT” IDL方法参数。 如果IDL方法签名将IDL ValueBase作为“out”或“INOUT”参数,则程序员必须传递的一个实例ValueBaseHolder如在方法调用对应的参数; 对于“inout”参数,程序员还必须填写要发送到服务器的“in”值。 在方法调用返回之前,ORB将填写与从服务器返回的“out”值对应的值。
如果myValueBaseHolder是实例ValueBaseHolder ,存储在其值value字段可以与被访问myValueBaseHolder.value 。
| Modifier and Type | Field and Description |
|---|---|
Serializable |
value
这
ValueBaseHolder对象持有的
java.io.Serializable价值。
|
| Constructor and Description |
|---|
ValueBaseHolder()
构造一个新的
ValueBaseHolder对象,其
value字段初始化为
0 。
|
ValueBaseHolder(Serializable initial)
构造一个新的
ValueBaseHolder对象,其
value字段初始化为给定的
java.io.Serializable 。
|
| Modifier and Type | Method and Description |
|---|---|
void |
_read(InputStream input)
从
input读取,并使用未编组的数据启动持有人的价值。
|
TypeCode |
_type()
返回对应于持有者持有的值的
TypeCode对象。
|
void |
_write(OutputStream output)
在
output的价值。
|
public Serializable value
java.io.Serializable持有的
ValueBaseHolder对象。
public ValueBaseHolder()
ValueBaseHolder对象,其
value字段初始化为
0 。
public ValueBaseHolder(Serializable initial)
ValueBaseHolder对象,其
value字段初始化为给定的
java.io.Serializable 。
initial -
java.io.Serializable用于初始化新创建的
ValueBaseHolder对象的
value字段
public void _read(InputStream input)
input读取,并通过未编组的数据启动持有人的值。
_read在接口
Streamable
input - InputStream包含来自线的CDR格式的数据
public void _write(OutputStream output)
output中持有人的价值。
_write在界面
Streamable
output - 将包含CDR格式化数据的OutputStream
public TypeCode _type()
TypeCode对象。
_type在接口
Streamable
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.