Examples of read_any()


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

        final CDRInputStream in = new CDRInputStream(orb, data);

        try
        {
            in.openEncapsulatedArray();
            Any result = in.read_any();

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

            return result;
        }
View Full Code Here

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

        try
        {
            in.setGIOPMinor( giopMinor );

            in.openEncapsulatedArray();
            Any result = in.read_any();

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

            return result;
View Full Code Here

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

        OutputStream s = setup.getClientOrb().create_output_stream ();
        s.write_any (outAny);

        @SuppressWarnings("resource")
        InputStream i = s.create_input_stream ();
        Any inAny = i.read_any ();
        assertEquals(testValue, inAny.extract_short());
        assertTrue(outAny.equal(inAny));

        FileUtils.writeByteArrayToFile(target, ((CDROutputStream)s).getBufferCopy());
        assertTrue(FileUtils.sizeOf(target) > 0);
View Full Code Here

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

        FileUtils.writeByteArrayToFile(target, ((CDROutputStream)s).getBufferCopy());
        assertTrue(FileUtils.sizeOf(target) > 0);
        byte[] messageByte = FileUtils.readFileToByteArray(target);

        i = new org.jacorb.orb.CDRInputStream(setup.getClientOrb(), messageByte);
        inAny = i.read_any ();

        assertEquals(testValue, inAny.extract_short());
        assertTrue(outAny.equal(inAny));
    }
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.