Examples of read_long()


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

        // Invoke the method.
        in = _invoke(out);

        // Read the returned values.
        int result = in.read_long();

        // Read the inout and out parameters.
        an_octet.value = in.read_octet();
        a_short.value = in.read_short();
        a_string.value = in.read_string();
View Full Code Here

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

        // The special name of operation instructs just to get
        // the field value rather than calling the method.
        OutputStream out = _request("_get_theField", true);
        in = _invoke(out);

        int result = in.read_long();
        return result;
      }
    catch (ApplicationException ex)
      {
        in = ex.getInputStream();
View Full Code Here

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

    InputStream in = null;
    try
      {
        OutputStream out = _request("getPoaMode", true);
        in = _invoke(out);
        return in.read_long();
      }
    catch (ApplicationException ex)
      {
        in = ex.getInputStream();
        throw new MARSHAL(ex.getId());
View Full Code Here

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

    try
      {
        OutputStream out = _request("sleep_and_return", true);
        out.write_long(duration);
        in = _invoke(out);
        return in.read_long();
      }
    catch (ApplicationException ex)
      {
        in = ex.getInputStream();
View Full Code Here

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

        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        Long longValue = new Long(-1234567);
        writer.writeLong(longValue);
       
        InputStream iStream = oStream.create_input_stream();
        long l = iStream.read_long();
        assertTrue(l == longValue.longValue());
    }
   
    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

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

        ServiceContextHelper.write( outputStream, service_context );
        inputStream = outputStream.create_input_stream();

        // Constructor expects id to already have been read from stream.
        coreServiceContext = new UnknownServiceContext(
            inputStream.read_long(),
            (org.omg.CORBA_2_3.portable.InputStream)inputStream );

        id = coreServiceContext.getId();

        if (serviceContexts.get(id) != null)
View Full Code Here

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

            input = any.create_input_stream();
        } catch (BAD_OPERATION e) {
            return false;
        }

        length = input.read_long();
        components = new DynAny[length];
        anys = new Any[length];

        for (int i=0; i<length; i++) {
            // _REVISIT_ Could use read_xxx_array() methods on InputStream for efficiency
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.