Examples of read_char()


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

    {
        byte[] codedText = {'a', 's', 'd', 'f', 'x', 'y', 'z', '*',
                0, 0, 0, 5, 'C', 'A', 'F', 'E', 0};
        CDRInputStream stream = new CDRInputStream( orb, codedText );
        assertEquals( "char 1", 'a', stream.read_char() );
        assertEquals( "char 2", 's', stream.read_char() );
        assertEquals( "char 3", 'd', stream.read_char() );
        assertEquals( "char 4", 'f', stream.read_char() );

        char[] buffer = new char[4];
        buffer[0] = 'w';
View Full Code Here

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

        byte[] codedText = {'a', 's', 'd', 'f', 'x', 'y', 'z', '*',
                0, 0, 0, 5, 'C', 'A', 'F', 'E', 0};
        CDRInputStream stream = new CDRInputStream( orb, codedText );
        assertEquals( "char 1", 'a', stream.read_char() );
        assertEquals( "char 2", 's', stream.read_char() );
        assertEquals( "char 3", 'd', stream.read_char() );
        assertEquals( "char 4", 'f', stream.read_char() );

        char[] buffer = new char[4];
        buffer[0] = 'w';
        stream.read_char_array( buffer, 1, 3 );
View Full Code Here

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

                0, 0, 0, 5, 'C', 'A', 'F', 'E', 0};
        CDRInputStream stream = new CDRInputStream( orb, codedText );
        assertEquals( "char 1", 'a', stream.read_char() );
        assertEquals( "char 2", 's', stream.read_char() );
        assertEquals( "char 3", 'd', stream.read_char() );
        assertEquals( "char 4", 'f', stream.read_char() );

        char[] buffer = new char[4];
        buffer[0] = 'w';
        stream.read_char_array( buffer, 1, 3 );
        assertEquals( "char array", "wxyz", new String( buffer ) );
View Full Code Here

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

        };
        CDRInputStream stream = new CDRInputStream( orb, codedText );
        selectCodeSets( stream, "UTF8", "UTF8" );
        stream.setGIOPMinor( 1 );
        assertEquals( "sstring value", "asdf", stream.read_string() );
        assertEquals( "char 1", 'x', stream.read_char() );
        stream.close();
    }


    /**
 
View Full Code Here

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

        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        Character charValue = new Character('c');
        writer.writeChar(charValue);
       
        InputStream iStream = oStream.create_input_stream();
        char c = iStream.read_char();
        assertTrue(c == charValue.charValue());
    }

    public void testWriteWChar() {
        Buffer buf = new Buffer();
View Full Code Here

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

        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        Character wcharValue = new Character('w');
        writer.writeChar(wcharValue);
       
        InputStream iStream = oStream.create_input_stream();
        char wc = iStream.read_char();
        assertTrue(wc == wcharValue.charValue());
    }
   
    public void testWriteShort() {
        Buffer buf = new Buffer();
View Full Code Here

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

        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        Character charValue = new Character('c');
        writer.writeChar(charValue);
       
        InputStream iStream = oStream.create_input_stream();
        char c = iStream.read_char();
        assertTrue(c == charValue.charValue());
    }

    public void testWriteWChar() {
        Buffer buf = new Buffer();
View Full Code Here

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

        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        Character wcharValue = new Character('w');
        writer.writeChar(wcharValue);
       
        InputStream iStream = oStream.create_input_stream();
        char wc = iStream.read_char();
        assertTrue(wc == wcharValue.charValue());
    }
   
    public void testWriteShort() {
        Buffer buf = new Buffer();
View Full Code Here

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

        InputStream is = os.create_input_stream();
        assertTrue(is.available() > 0);

        assertEquals(is.read_boolean(), true);
        assertEquals(is.read_char(), 'a');
        assertEquals(is.read_double(), 1.234, 0.001);
        assertEquals(is.read_float(), 2.345f, 0.001f);
        assertEquals(is.read_long(), 987);
        assertEquals(is.read_longlong(), 876);
        assertEquals(is.read_short(), (short)13);
View Full Code Here

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

        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        Character charValue = new Character('c');
        writer.writeChar(charValue);
       
        InputStream iStream = oStream.create_input_stream();
        char c = iStream.read_char();
        assertTrue(c == charValue.charValue());
    }

    @Test
    public void testWriteWChar() {
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.