Package org.omg.CORBA_2_3.portable

Examples of org.omg.CORBA_2_3.portable.InputStream


                returnType = loadClass(methodInfo.getReturnType());
            }

            InputStream in = null;
            try {
                OutputStream out = (OutputStream)stub._request(operation, true);

                for (int i = 0; i < parameterTypes.length; i++) {
                    // Object arg = (args.length < i) ? null : args[i];
                    writeValue(out, args[i], parameterTypes[i]);
                }
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

                returnType = loadClass(methodInfo.getReturnType());
            }

            InputStream in = null;
            try {
                OutputStream out = (OutputStream)stub._request(operation, true);

                for (int i = 0; i < parameterTypes.length; i++) {
                    // Object arg = (args.length < i) ? null : args[i];
                    writeValue(out, args[i], parameterTypes[i]);
                }
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

         // always return false.

         InputStream in = null;
         try {
            try {
               OutputStream out =
                  (OutputStream)_request(operationName, true);
               stubStrategy.writeParams(out, params);
               trace("sent request: " + operationName);
               in = (InputStream)_invoke(out);
               if (stubStrategy.isNonVoid()) {
View Full Code Here

    }

    private void invoke(boolean responseExpected) {
        REMARSHAL:
        do {
            OutputStream out = (OutputStream)
                    target._request(operation, responseExpected);

            for (int i = 0; i < arguments.count(); i++) {
                NamedValue nv = null;
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 (CommonSetup.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 (CommonSetup.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.InputStream

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.