public final class IntHolder extends Object implements Streamable
一个int是用来存储“出来”和“在IDL方法INOUT参数容器类。如果一个IDL IDL long方法签名为“了”或“输入”参数,程序员必须通过IntHolder实例在方法调用相应的参数;“输入”参数,程序员还必须填写“”值被发送到服务器。在方法调用返回,ORB将填写相应的“价值”从服务器返回的值。
如果myIntHolder是IntHolder实例,存储在其value字段的值可以myIntHolder.value。
| Modifier and Type | Field and Description |
|---|---|
int |
value
在其
value场这
IntHolder对象举行
int价值。
|
| Constructor and Description |
|---|
IntHolder()
构建一个新的
value字段初始化为
0
IntHolder对象。
|
IntHolder(int initial)
构建一个新的
value字段初始化为给定的
int
IntHolder对象。
|
| Modifier and Type | Method and Description |
|---|---|
void |
_read(InputStream input)
读取数据并将其分配
input它们分散在这
IntHolder对象的
value场。
|
TypeCode |
_type()
检索对应于该
IntHolder对象的
value场举行的价值
TypeCode对象。
|
void |
_write(OutputStream output)
乘警在这
IntHolder对象的
value字段的值到输出流
output。
|
public IntHolder()
value字段初始化为
0
IntHolder对象。
public IntHolder(int initial)
IntHolder对象及其
value字段初始化为给定的
int。
initial -这
int初始化新创建对象的
value领域
IntHolder
public void _read(InputStream input)
input它们分散在这
IntHolder对象的
value场。
_read 接口
Streamable
input含CDR格式的数据从电线
InputStream对象
public void _write(OutputStream output)
IntHolder对象的
value字段的值到输出流
output。
_write 接口
Streamable
output -
OutputStream对象将包含CDR格式的数据
public TypeCode _type()
IntHolder对象的
value场举行的价值
TypeCode对象。
_type 接口
Streamable
IntHolder对象持有的值类型代码
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.