Package org.omg.CORBA

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


        if (containedType != null) {
            a.type(containedType.getTypeCode());
            OutputStream os = a.create_output_stream();
            CorbaObjectWriter writer = new CorbaObjectWriter(os);
            writer.write(containedType);
            a.read_value(os.create_input_stream(), containedType.getTypeCode());
        }
        stream.write_any(a);
    }

    // -- complex types --
View Full Code Here


                    switch (nv.flags()) {
                        case ARG_OUT.value:
                        case ARG_INOUT.value:
                            org.omg.CORBA.Any value = nv.value();
                            value.read_value(in, value.type());
                    }
                }

            }
            catch (org.omg.CORBA.portable.RemarshalException _exception) {
View Full Code Here

                        throw new org.omg.CORBA.BAD_PARAM("bad exception type");
                    }

                    if (match) {
                        Any ex_val = orb.create_any();
                        ex_val.read_value(ex_in, ex_tc);
                        env.exception(new org.omg.CORBA.UnknownUserException(ex_val));
                        return;
                    }
                }
View Full Code Here

        {
            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

        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

            // We can be sure that the whole typecode encapsulation has been
            // read off.
            dprintThrowable(ex);
        }
        // read off the value of the any
        any.read_value(parent, tc);

        return any;
    }

    public org.omg.CORBA.Object read_Object() {
View Full Code Here

                    // Since we dont have the actual user exception
                    // class, the spec says we have to create an
                    // UnknownUserException and put it in the
                    // environment.
                    Any eany = orb.create_any();
                    eany.read_value(is, (TypeCode)tc);

                    return new UnknownUserException(eany);
                }
            }
        } catch (Exception b) {
View Full Code Here

            // We can be sure that the whole typecode encapsulation has been
            // read off.
            dprintThrowable(ex);
        }
        // read off the value of the any
        any.read_value(parent, tc);

        return any;
    }

    public org.omg.CORBA.Object read_Object() {
View Full Code Here

        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

        {
            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.