tc
in
624625626627628629630631632633634
} OutputStream out = (OutputStream) reply.createExceptionReply(); String exceptionId = getExceptionId(exceptionType); out.write_string(exceptionId); out.write_value(exception); return out; } throw exception; }
625626627628629630631632633634635
308309310311312313314315316317318
5253545556575859606162
// 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(); } private ORB orb;
599600601602603604605606607608609
7576777879808182838485
value.value = "Hello world"; value.number = -10; ORB foreignorb = ORB.init(new String[]{}, TestUtils.newForeignORBProperties()); OutputStream out = (OutputStream) foreignorb.create_output_stream(); out.write_value(value); byte []result; if (CommonSetup.isIBM) { result = (byte[])invoke("com.ibm.rmi.iiop.CDROutputStream", out, "toByteArray", new Class<?>[] {}, new Object[] {});
109110111112113114115116117118119
{ NegativeArgumentException value = new NegativeArgumentException(-10); ORB foreignorb = ORB.init(new String[]{}, TestUtils.newForeignORBProperties()); OutputStream out = (OutputStream) foreignorb.create_output_stream(); out.write_value(value); byte []result; if (CommonSetup.isIBM) { result = (byte[])invoke("com.ibm.rmi.iiop.CDROutputStream", out, "toByteArray", new Class<?>[] {}, new Object[] {});