JavaTM 2 Platform
Standard Edition

org.omg.CORBA.portable
Interface Streamable

All Known Implementing Classes:
AnyHolder, BooleanHolder, ByteHolder, CharHolder, DoubleHolder, FixedHolder, FloatHolder, IntHolder, LongHolder, ObjectHolder, PrincipalHolder, ServiceInformationHolder, ShortHolder, StringHolder, TypeCodeHolder, BindingTypeHolder, BindingHolder, NamingContextHolder, NameHolder, BindingListHolder, BindingIteratorHolder, NameComponentHolder, InvalidNameHolder, CannotProceedHolder, NotFoundHolder, AlreadyBoundHolder, NotEmptyHolder, NotFoundReasonHolder

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
Standard Edition

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