Examples of read_value()


Examples of org.omg.CORBA.Any.read_value()

        try
        {
            in.openEncapsulatedArray();
            Any result = orb.create_any();
            result.read_value(in, tc);

            // not necessary to end encapsulation, since stream is never used again

            return result;
        }
View Full Code Here

Examples of org.omg.CORBA.Any.read_value()

    Any b = orb.create_any();

    InputStream ou = out.create_input_stream();

    b.read_value((org.omg.CORBA_2_3.portable.InputStream) ou,
                 cmInfoHelper.type()
                );

    cmInfo s = (cmInfo) b.extract_Value();
View Full Code Here

Examples of org.omg.CORBA.Any.read_value()

                Any b = orb.create_any();

                InputStream ou = out.create_input_stream();
                TypeCode type = orig._type();

                b.read_value((org.omg.CORBA_2_3.portable.InputStream) ou, type);

                Info s = (Info) b.extract_Value();

                assertEquals("After Any, sv " + mode, s._message, orig._message);
                assertEquals("After Any, sv " + mode, s._name, orig._name);
View Full Code Here

Examples of org.omg.CORBA.Any.read_value()

  {
    Any a = orb.create_any();
    org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
    a.type(ServiceInformationHelper.type());
    ServiceInformationHelper.write(out, createInstance());
    a.read_value(out.create_input_stream(), ServiceInformationHelper.type());

    verifyInstance(ServiceInformationHelper.read(a.create_input_stream()));
  }

  /**
 
View Full Code Here

Examples of org.omg.CORBA.Any.read_value()

                }
                case TCKind._tk_union: {
                    Any myDiscriminator = orb.create_any();
                    Any otherDiscriminator = orb.create_any();
                    myDiscriminator.read_value(myStream, realType.discriminator_type());
                    otherDiscriminator.read_value(otherStream, realType.discriminator_type());

                    if ( ! myDiscriminator.equal(otherDiscriminator)) {
                        return false;
                    }
                    TypeCodeImpl realTypeCodeImpl = TypeCodeImpl.convertToNative(orb, realType);
View Full Code Here

Examples of org.omg.CORBA.Any.read_value()

    // 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

Examples of org.omg.CORBA.Any.read_value()

    // 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

Examples of org.omg.CORBA.Any.read_value()

        // First unmarshal the return value if it is not void
        if ( _result != null ) {
            Any returnAny = _result.value();
            TypeCode returnType = returnAny.type();
            if ( returnType.kind().value() != TCKind._tk_void )
                returnAny.read_value(is, returnType);
        }

        // Now unmarshal the out/inout args
        try {
            for ( int i=0; i<_arguments.count() ; i++) {
View Full Code Here

Examples of org.omg.CORBA.Any.read_value()

                case ARG_IN.value:
                    break;
                case ARG_OUT.value:
                case ARG_INOUT.value:
                    Any any = nv.value();
                    any.read_value(is, any.type());
                    break;
                }
            }
        }
        catch ( org.omg.CORBA.Bounds ex ) {
View Full Code Here

Examples of org.omg.CORBA.Any.read_value()

                //Any tmp = new AnyImpl(_orb);
                Any tmp =  ((CDRInputStream)src).orb().create_any();
                TypeCodeImpl t = new TypeCodeImpl((ORB)dst.orb());
                t.read_value((org.omg.CORBA_2_3.portable.InputStream)src);
                t.write_value((org.omg.CORBA_2_3.portable.OutputStream)dst);
                tmp.read_value(src, t);
                tmp.write_value(dst);
                break;
            }

        case TCKind._tk_TypeCode:
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.