Package org.omg.CORBA_2_3.portable

Examples of org.omg.CORBA_2_3.portable.OutputStream


/* 109 */     if (!_is_local())
/*     */     {
/* 117 */       InputStream in = null;
/*     */       try
/*     */       {
/* 120 */         OutputStream out = (OutputStream)_request(operationName, true);
/*     */
/* 122 */         stubStrategy.writeParams(out, params);
/* 123 */         trace("sent request: " + operationName);
/* 124 */         in = (InputStream)_invoke(out);
/* 125 */         if (stubStrategy.isNonVoid()) {
View Full Code Here


            Class exceptionType = exceptionTypes[i];
            if (!exceptionType.isInstance(exception)) {
                continue;
            }

            OutputStream out = (OutputStream) reply.createExceptionReply();
            String exceptionId = getExceptionId(exceptionType);
            out.write_string(exceptionId);
            out.write_value(exception);
            return out;
        }
        throw exception;
    }
View Full Code Here

            if (!Util.isLocal(stub)) {

                InputStream in = null;
                try {
                    // create the request output stream
                    OutputStream out = (OutputStream) stub._request(operationName, true);

                    // write the arguments
                    Class[] parameterTypes = method.getParameterTypes();
                    for (int i = 0; i < parameterTypes.length; i++) {
                        Class parameterType = parameterTypes[i];
View Full Code Here

      Something value = new Something();
      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 (TestUtils.isIBM)
      {
          result = (byte[])invoke("com.ibm.rmi.iiop.CDROutputStream", out, "toByteArray", new Class<?>[] {}, new Object[] {});
View Full Code Here

    public void testException() throws Exception
   {
      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 (TestUtils.isIBM)
      {
          result = (byte[])invoke("com.ibm.rmi.iiop.CDROutputStream", out, "toByteArray", new Class<?>[] {}, new Object[] {});
View Full Code Here

                    break;
                }
                case TCKind._tk_value:      // 29
                case TCKind._tk_value_box:  // 30
                {
                    final OutputStream outputStream = ((org.omg.CORBA_2_3.portable.OutputStream)output);
                    final Serializable serializable = (Serializable)value;
                    outputStream.write_value (serializable);
                    break;
                }
                case TCKind._tk_native:     //31
                {
                    throw new BAD_TYPECODE(
View Full Code Here

TOP

Related Classes of org.omg.CORBA_2_3.portable.OutputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.