Examples of read_long()


Examples of org.apache.geronimo.corba.io.EncapsulationInputStream.read_long()

        return TAG_ORB_TYPE.value;
    }

    public static Component read(AbstractORB orb, byte[] data) {
        InputStream is = new EncapsulationInputStream(orb, data);
        return new ORBTypeComponent(is.read_long());
    }

    protected void write_content(OutputStream eo) {
        eo.write_long(orbtype);
    }
View Full Code Here

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

        final CDRInputStream is = new CDRInputStream ((org.omg.CORBA.ORB)null, taggedComponent.component_data );

        try
        {
            is.openEncapsulatedArray ();
            int type = is.read_long ();

            out.print ( "\t\tType: " + type);
            if (type == ORBConstants.JACORB_ORB_ID)
            {
                out.println (" (JacORB)");
View Full Code Here

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

        {
            int val;
            int count = 0;

            is.openEncapsulatedArray ();
            int len = is.read_long ();

            while (len-- != 0)
            {
                val = is.read_long ();
                out.print( "\t\t#" + count++ + ": ");
View Full Code Here

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

            is.openEncapsulatedArray ();
            int len = is.read_long ();

            while (len-- != 0)
            {
                val = is.read_long ();
                out.print( "\t\t#" + count++ + ": ");
                is.openEncapsulation ();
                switch (val)
                {
                    case PRIORITY_BANDED_CONNECTION_POLICY_TYPE.value:
View Full Code Here

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

                        long i;
                        short low;
                        short high;

                        out.println ("RTCORBA::PRIORITY_BANDED_CONNECTION");
                        val = is.read_long ();
                        for (i = 0; i < val; i++)
                        {
                            low = is.read_short ();
                            high = is.read_short ();
                            out.println ("\t\t\tBand " + i + ": " + low + "-" + high);
View Full Code Here

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

                        break;
                    }
                    case PRIORITY_MODEL_POLICY_TYPE.value:
                    {
                        out.print("RTCORBA::PRIORITY_MODEL");
                        val = is.read_long ();
                        switch (val)
                        {
                            case PriorityModel._CLIENT_PROPAGATED:
                            {
                                out.print (" (CLIENT_PROPAGATED, ");
View Full Code Here

Examples of org.omg.CORBA.portable.InputStream.read_long()

        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        Integer longValue = new Integer(-1234567);
        writer.writeLong(longValue);
       
        InputStream iStream = oStream.create_input_stream();
        int l = iStream.read_long();
        assertTrue(l == longValue.intValue());
    }
   
    public void testWriteULong() {
        Buffer buf = new Buffer();
View Full Code Here

Examples of org.omg.CORBA.portable.InputStream.read_long()

        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        writer.writeArray(obj);
       
        InputStream iStream = oStream.create_input_stream();
        for (int i = 0; i < data.length; ++i) {
            int val = iStream.read_long();
            assertTrue(val == data[i]);
        }
    }
   
    public void testWriteSequence() {
View Full Code Here

Examples of org.omg.CORBA.portable.InputStream.read_long()

        OutputStream oStream = new OutputStream(buf);
        CorbaObjectWriter writer =  new CorbaObjectWriter(oStream);
        writer.writeSequence(obj);
       
        InputStream iStream = oStream.create_input_stream();
        int length = iStream.read_long();
        for (int i = 0; i < length; ++i) {
            String val = iStream.read_string();
            assertTrue(val.equals(data[i]));
        }
    }
View Full Code Here

Examples of org.omg.CORBA.portable.InputStream.read_long()

        OutputStream oStream = new OutputStream(buf);
        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        writer.writeStruct(obj);
       
        InputStream iStream = oStream.create_input_stream();
        int readMember1 = iStream.read_long();
        assertTrue(readMember1 == member1);
        String readMember2 = iStream.read_string();
        assertTrue(readMember2.equals(member2));
        boolean readMember3 = iStream.read_boolean();
        assertTrue(readMember3 == member3);
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.