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