JavaTM 2 Platform
Std. Ed. v1.3.1

org.omg.CORBA.portable
Interface Streamable

All Known Subinterfaces:
StreamableValue
All Known Implementing Classes:
AnyHolder, AnySeqHolder, BooleanHolder, BooleanSeqHolder, ByteHolder, CharHolder, CharSeqHolder, CurrentHolder, DoubleHolder, DoubleSeqHolder, FixedHolder, FloatHolder, FloatSeqHolder, IntHolder, LongHolder, LongLongSeqHolder, LongSeqHolder, ObjectHolder, OctetSeqHolder, PolicyHolder, PolicyListHolder, PrincipalHolder, ServiceInformationHolder, ShortHolder, ShortSeqHolder, StringHolder, TypeCodeHolder, ULongLongSeqHolder, ULongSeqHolder, UShortSeqHolder, ValueBaseHolder, WCharSeqHolder, BindingIteratorHolder, NameComponentHolder, BindingTypeHolder, BindingListHolder, BindingHolder, NameHolder, NamingContextHolder, AlreadyBoundHolder, NotFoundReasonHolder, InvalidNameHolder, CannotProceedHolder, NotFoundHolder, NotEmptyHolder

public interface Streamable

The base class for the Holder classess of all complex IDL types. The ORB treats all generated Holders as Streamable to invoke the methods for marshalling and unmarshalling.

Since:
JDK1.2

Method Summary
 void _read(InputStream istream)
          Reads data from istream and initalizes the value field of the Holder with the unmarshalled data.
 TypeCode _type()
          Retrieves the TypeCode object corresponding to the value in the value field of the Holder.
 void _write(OutputStream ostream)
          Marshals to ostream the value in the value field of the Holder.
 

Method Detail

_read

public void _read(InputStream istream)
Reads data from istream and initalizes the value field of the Holder with the unmarshalled data.
Parameters:
istream - the InputStream that represents the CDR data from the wire.

_write

public void _write(OutputStream ostream)
Marshals to ostream the value in the value field of the Holder.
Parameters:
ostream - the CDR OutputStream

_type

public TypeCode _type()
Retrieves the TypeCode object corresponding to the value in the value field of the Holder.
Returns:
the TypeCode object for the value held in the holder

JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.