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 ObjectCopier

Fields Summary
private ORB
orb
Constructors Summary
public ORBStreamObjectCopierImpl(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();