Package org.omg.CORBA.portable

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


      return stream.dup();
  } else {
      OutputStream os = (OutputStream)orb.create_output_stream();
      TCUtility.marshalIn(os, realType(), value, object);

      return os.create_input_stream();
  }
    }

    ///////////////////////////////////////////////////////////////////////////
    // marshaling/unmarshaling routines
View Full Code Here


    // and returns it wrapped into a new Any
    public Any extractAny(TypeCode memberType, ORB orb) {
        Any returnValue = orb.create_any();
        OutputStream out = returnValue.create_output_stream();
        TypeCodeImpl.convertToNative(orb, memberType).copy((InputStream)stream, out);
        returnValue.read_value(out.create_input_stream(), memberType);
        return returnValue;
    }

    // This method could very well be moved into TypeCodeImpl or a common utility class,
    // but is has to be in this package.
View Full Code Here

    // but is has to be in this package.
    static public Any extractAnyFromStream(TypeCode memberType, InputStream input, ORB orb) {
        Any returnValue = orb.create_any();
        OutputStream out = returnValue.create_output_stream();
        TypeCodeImpl.convertToNative(orb, memberType).copy(input, out);
        returnValue.read_value(out.create_input_stream(), memberType);
        return returnValue;
    }

    // There is no other way for DynAnys to find out whether the Any is initialized.
    public boolean isInitialized() {
View Full Code Here

  public static void insert(Any a, TestLocationForwardServer that)
  {
    OutputStream out = a.create_output_stream();
    a.type(type());
    write(out, that);
    a.read_value(out.create_input_stream(), type());
  }

  public static TestLocationForwardServer extract(Any a)
  {
    return read(a.create_input_stream());
View Full Code Here

  public static void insert(Any a, node that)
  {
    OutputStream out = a.create_output_stream();
    a.type(type());
    write(out, that);
    a.read_value(out.create_input_stream(), type());
  }

  /**
   * Read the node from the common data reprentation (CDR) stream.
   */
 
View Full Code Here

  public static void insert(Any a, ourUserException that)
  {
    OutputStream out = a.create_output_stream();
    a.type(type());
    write(out, that);
    a.read_value(out.create_input_stream(), type());
  }

  public static ourUserException extract(Any a)
  {
    return read(a.create_input_stream());
View Full Code Here

  public static void insert(org.omg.CORBA.Any a, Info that)
  {
    OutputStream out = a.create_output_stream();
    a.type(type());
    write(out, that);
    a.read_value(out.create_input_stream(), type());
  }

  public static Info extract(org.omg.CORBA.Any a)
  {
    return read(a.create_input_stream());
View Full Code Here

  public static void insert(Any a, cmInfo that)
  {
    OutputStream out = a.create_output_stream();
    a.type(type());
    write(out, that);
    a.read_value(out.create_input_stream(), type());
  }

  public static cmInfo extract(Any a)
  {
    return read(a.create_input_stream());
View Full Code Here

  {
    OutputStream out = orb.create_output_stream();
    ServiceInformationHelper.write(out, createInstance());

    ServiceInformation r =
      ServiceInformationHelper.read(out.create_input_stream());

    verifyInstance(r);
  }

  public void testHelper_Insert_Extract()
View Full Code Here

    comServant object = new comServant();
    orb.connect(object);

    out.write_Object(object);

    IOR ior = IORHelper.read(out.create_input_stream());

    boolean ip = false;

    for (int i = 0; i < ior.profiles.length; i++)
      {
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.