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