org.jboss.iiop.rmi.marshal
Interface CDRStreamWriter


public interface CDRStreamWriter

Interface of an object that knows how to marshal a Java basic type or object into a CDR input stream. Implementations of this interface are specialized for particular types: an IntWriter is a CDRStreamWriter that knows how to marshal ints, a LongWriter is a CDRStreamWriter that knows how to marshal longs, and so on.


Method Summary
 void write(org.omg.CORBA_2_3.portable.OutputStream out, java.lang.Object obj)
          Marshals a Java basic data type or object into a CDR output stream.
 

Method Detail

write

public void write(org.omg.CORBA_2_3.portable.OutputStream out,
                  java.lang.Object obj)
Marshals a Java basic data type or object into a CDR output stream.

Parameters:
out - the output stream
obj - the basic data type (within a suitable wrapper instance) or object to be marshalled