Examples of read_value()


Examples of org.apache.geronimo.corba.AnyImpl.read_value()

        }
    }

    public final Any read_any() {
        org.omg.CORBA.Any any = new AnyImpl(__orb());
        any.read_value(this, read_TypeCode());
        return any;
    }

    public final TypeCode read_TypeCode() {
        return TypeCodeUtil.read(this, this, new java.util.HashMap());
View Full Code Here

Examples of org.apache.yoko.orb.CORBA.InputStream.read_value()

        impl._OB_marshal(out);
        InputStream in = (InputStream) out.create_input_stream();
        // This is not necessary
        // in._OB_ORBInstance(orbInstance_);

        return in.read_value();
    }

    public synchronized java.lang.Object get_abstract()
            throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
            org.omg.DynamicAny.DynAnyPackage.InvalidValue {
View Full Code Here

Examples of org.apache.yoko.orb.CORBA.InputStream.read_value()

        impl._OB_marshal(out);
        InputStream in = (InputStream) out.create_input_stream();
        // This is not necessary
        // in._OB_ORBInstance(orbInstance_);

        return in.read_value();
    }

    public synchronized java.lang.Object get_abstract()
            throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
            org.omg.DynamicAny.DynAnyPackage.InvalidValue {
View Full Code Here

Examples of org.jacorb.orb.Any.read_value()

            for( int i = 0 ; i < limit; i++ )
            {
                try
                {
                    Any any = (org.jacorb.orb.Any)orb.create_any();
                    any.read_value(is,
                                 TypeCode.originalType(typeCode.member_type(i)));

                    members[i] = new NameValuePair( type().member_name(i), any);
                }
                catch( org.omg.CORBA.TypeCodePackage.Bounds e )
View Full Code Here

Examples of org.jacorb.orb.Any.read_value()

         elementType = TypeCode.originalType( type().content_type() );

         for( int i = 0 ; i < length; i++ )
         {
            Any any = (org.jacorb.orb.Any)orb.create_any();
            any.read_value( is, elementType );
            members.add( any );
         }
      }
      catch( org.omg.CORBA.TypeCodePackage.BadKind e )
      {
View Full Code Here

Examples of org.jacorb.orb.CDRInputStream.read_value()

      Properties properties = new Properties();
      properties.put("jacorb.interop.sun", "on");
      ORB jacorborb = org.omg.CORBA.ORB.init (new String[]{}, properties);
      CDRInputStream in = new CDRInputStream(jacorborb, result);

      Something s = (Something)in.read_value();

      System.out.println("### the value is : " + s.value + "\nthe number is " + s.number);

      foreignorb.shutdown(true);
      jacorborb.shutdown(true);
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()

        {
            in.setGIOPMinor( giopMinor );

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

            //not necessary, since stream is never used again
            //in.closeEncasupaltion();

            return result;
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.