FileDocCategorySizeDatePackage
ORBStreamObjectCopierImpl.javaAPI DocJava SE 5 API1202Fri Aug 26 14:54:18 BST 2005com.sun.corba.se.impl.copyobject

ORBStreamObjectCopierImpl

public class ORBStreamObjectCopierImpl extends Object implements com.sun.corba.se.spi.copyobject.ObjectCopier

Fields Summary
private org.omg.CORBA.ORB
orb
Constructors Summary
public ORBStreamObjectCopierImpl(org.omg.CORBA.ORB orb)

	this.orb = orb ;
    
Methods Summary
public java.lang.Objectcopy(java.lang.Object obj)

	if (obj instanceof Remote) {
            // Yes, so make sure it is connected and converted
            // to a stub (if needed)...
            return Utility.autoConnect(obj,orb,true);
        }

	OutputStream out = (OutputStream)orb.create_output_stream();
	out.write_value((Serializable)obj);
	InputStream in = (InputStream)out.create_input_stream();
	return in.read_value();