Package org.omg.CORBA.portable

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


        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.