JavaTM 2 Platform
Standard Ed. 6

org.omg.CORBA.portable
介面 Streamable

所有已知子介面:
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 中保存的值

JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only