Package org.omg.CORBA.portable

Examples of org.omg.CORBA.portable.OutputStream.write_long()


        // Get the stream where the parameters must be written:
        OutputStream out = _request("passSimple", true);

        // Write the parameters.
        out.write_octet(an_octet.value);
        out.write_long(a_long);
        out.write_short(a_short.value);
        out.write_string(a_string.value);

        // Invoke the method.
        in = _invoke(out);
View Full Code Here


    try
      {
        // The special name of operation instructs just to set
        // the field value rather than calling the method.
        OutputStream out = _request("_set_theField", true);
        out.write_long(newTheField);
        in = _invoke(out);
      }
    catch (ApplicationException ex)
      {
        in = ex.getInputStream();
View Full Code Here

      {
        // Get stream.
        OutputStream out = _request("throwException", true);

        // Write parameter.
        out.write_long(parameter);

        // Call method.
        in = _invoke(out);
      }
    catch (ApplicationException ex)
View Full Code Here

    if (a_method.equals("_get_theField"))
      {
        int result = (int) 0;
        result = theField();
        out = rh.createReply();
        out.write_long(result);
      }
    else
    /* Set the field value. */
    if (a_method.equals("_set_theField"))
      {
View Full Code Here

        a_string.value = in.read_string();

        DoubleHolder a_double = new DoubleHolder();
        int result = passSimple(an_octet, a_long, a_short, a_string, a_double);
        out = rh.createReply();
        out.write_long(result);
        out.write_octet(an_octet.value);
        out.write_short(a_short.value);
        out.write_string(a_string.value);
        out.write_double(a_double.value);
      }
View Full Code Here

  {
    InputStream in = null;
    try
      {
        OutputStream out = _request("setPoaMode", true);
        out.write_long(mode);
        in = _invoke(out);
        return;
      }
    catch (ApplicationException ex)
      {
View Full Code Here

              if (method.equals("passArray"))
                {
                  int[] arg0 = (int[]) in.read_value(int[].class);
                  int result = target.passArray(arg0);
                  OutputStream out = reply.createReply();
                  out.write_long(result);
                  return out;
                }
            case 11:
              if (method.equals("joinStrings"))
                {
View Full Code Here

             */
        case 2 : // gnu/classpath/examples/CORBA/SimpleCommunication/communication/remotePoaControl/getPoaMode
        {
          int result = getPoaMode();
          out = rh.createReply();
          out.write_long(result);
          break;
        }

        default :
          throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE);
View Full Code Here

  {
    InputStream in = null;
    try
      {
        OutputStream out = _request("sleep_and_return", true);
        out.write_long(duration);
        in = _invoke(out);
        return in.read_long();
      }
    catch (ApplicationException ex)
      {
View Full Code Here

    {
        // write the IOR components to an org.omg.CORBA.portable.OutputStream
        OutputStream ostr = orb.create_output_stream();
        ostr.write_long(typeData.length);
        ostr.write_octet_array(typeData, 0, typeData.length);
        ostr.write_long(profileTags.length);
        for (int i = 0; i < profileTags.length; i++) {
            ostr.write_long(profileTags[i]);
            ostr.write_long(profileData[i].length);
            ostr.write_octet_array(profileData[i], 0, profileData[i].length);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.