Examples of read_ushort()


Examples of org.apache.yoko.orb.CORBA.InputStream.read_ushort()

                                        d, d.length);
                                InputStream s = new InputStream(b, 0, false,
                                        null, 0);
                                s._OB_readEndian();
                                String altHost = s.read_string();
                                short altPort = s.read_ushort();
                                if (portNo == altPort
                                        && hostMatch(host, altHost,
                                                loopbackMatches)) {
                                    match = true;
                                }
View Full Code Here

Examples of org.apache.yoko.orb.CORBA.InputStream.read_ushort()

                                        d, d.length);
                                InputStream s = new InputStream(b, 0, false,
                                        null, 0);
                                s._OB_readEndian();
                                String altHost = s.read_string();
                                short altPort = s.read_ushort();
                                if (portNo == altPort
                                        && hostMatch(host, altHost,
                                                loopbackMatches)) {
                                    match = true;
                                }
View Full Code Here

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

            header.flags = in.read_octet ();

            // Set endian for the stream
            in.setLittleEndian ((0x01 & header.flags) != 0);

            header.packet_length = in.read_ushort ();
            header.packet_number = in.read_ulong ();
            header.number_of_packets = in.read_ulong ();
            header.Id = org.omg.MIOP.UniqueIdHelper.read (in);

            int pos = in.get_pos ();
View Full Code Here

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

        try
        {
            is.openEncapsulatedArray();
            String hostname = is.read_string();
            short port = is.read_ushort();

            IIOPAddress result = new IIOPAddress (hostname, port);
            try
            {
               result.configure(((org.jacorb.orb.ORB)orb).getConfiguration ());
View Full Code Here

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

        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        Integer ushortValue = new Integer(123);
        writer.writeUShort(ushortValue);
       
        InputStream iStream = oStream.create_input_stream();
        int us = iStream.read_ushort();
        assertTrue(us == ushortValue.intValue());
    }
   
    public void testWriteLong() {
        Buffer buf = new Buffer();
View Full Code Here

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

        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        Short ushortValue = new Short((short)123);
        writer.writeUShort(ushortValue);
       
        InputStream iStream = oStream.create_input_stream();
        short us = iStream.read_ushort();
        assertTrue(us == ushortValue.shortValue());
    }
   
    public void testWriteLong() {
        Buffer buf = new Buffer();
View Full Code Here

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

        assertEquals(is.read_longlong(), 876);
        assertEquals(is.read_short(), (short)13);
        assertEquals(is.read_string(), "hi");
        assertEquals(is.read_ulong(), 765);
        assertEquals(is.read_ulonglong(), 567);
        assertEquals(is.read_ushort(), (short)23);
        assertEquals(is.read_wchar(), 'b');
        assertEquals(is.read_wstring(), "bye");
    }

}
View Full Code Here

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

        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        Integer ushortValue = new Integer(123);
        writer.writeUShort(ushortValue);
       
        InputStream iStream = oStream.create_input_stream();
        int us = iStream.read_ushort();
        assertTrue(us == ushortValue.intValue());
    }
   
    @Test
    public void testWriteLong() {
View Full Code Here

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

        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        Integer ushortValue = new Integer(123);
        writer.writeUShort(ushortValue);
       
        InputStream iStream = oStream.create_input_stream();
        int us = iStream.read_ushort();
        assertTrue(us == ushortValue.intValue());
    }
   
    @Test
    public void testWriteLong() {
View Full Code Here

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

        assertEquals(is.read_longlong(), 876);
        assertEquals(is.read_short(), (short)13);
        assertEquals(is.read_string(), "hi");
        assertEquals(is.read_ulong(), 765);
        assertEquals(is.read_ulonglong(), 567);
        assertEquals(is.read_ushort(), (short)23);
        assertEquals(is.read_wchar(), 'b');
        assertEquals(is.read_wstring(), "bye");
    }

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