org.omg.CORBA.portable

接口
异常
所有已知子接口:
StreamableValue
所有已知实现类:
AlreadyBoundHolder, AnyHolder, AnySeqHolder, BindingHolder, BindingIteratorHolder, BindingListHolder, BindingTypeHolder, BooleanHolder, BooleanSeqHolder, ByteHolder, CannotProceedHolder, CharHolder, CharSeqHolder, CookieHolder, CurrentHolder, DoubleHolder, DoubleSeqHolder, FixedHolder, FloatHolder, FloatSeqHolder, IntHolder, InvalidAddressHolder, InvalidNameHolder, IORHolder, IORInterceptor_3_0Holder, LongHolder, LongLongSeqHolder, LongSeqHolder, MultipleComponentProfileHolder, NameComponentHolder, NameHolder, NamingContextExtHolder, NamingContextHolder, NotEmptyHolder, NotFoundHolder, NotFoundReasonHolder, ObjectHolder, ObjectReferenceFactoryHolder, ObjectReferenceTemplateHolder, ObjectReferenceTemplateSeqHolder, OctetSeqHolder, ParameterModeHolder, PolicyErrorHolder, PolicyHolder, PolicyListHolder, PrincipalHolder, ServiceContextHolder, ServiceContextListHolder, ServiceInformationHolder, ShortHolder, ShortSeqHolder, StringHolder, StringSeqHolder, TaggedComponentHolder, TaggedProfileHolder, TypeCodeHolder, ULongLongSeqHolder, ULongSeqHolder, UnknownUserExceptionHolder, UShortSeqHolder, ValueBaseHolder, WCharSeqHolder, WrongTransactionHolder, WStringSeqHolder

public interface Streamable

所有复杂 IDL 类型的 Holder 类的基类。ORB 将所有生成的 Holder 视为 Streamable 来调用编组和解组的各种方法。

从以下版本开始:
JDK1.2

方法摘要
 void _read(InputStream istream)
          从 istream 读取数据,并使用已解组数据初始化 Holder 的 value 字段。
 TypeCode _type()
          检索对应于 Holder 中 value 字段值的 TypeCode 对象。
 void _write(OutputStream ostream)
          将 Holder 中 value 字段的值编组到 ostream
 

方法详细信息

_read

void _read(InputStream istream)
istream 读取数据,并使用已解组数据初始化 Holder 的 value 字段。

参数:
istream - 表示导线中 CDR 数据的 InputStream。

_write

void _write(OutputStream ostream)
将 Holder 中 value 字段的值编组到 ostream

参数:
ostream - CDR OutputStream

_type

TypeCode _type()
检索对应于 Holder 中 value 字段值的 TypeCode 对象。

返回:
TypeCode 对象,对应于 holder 中保存的值