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