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