Package org.omg.CORBA

Examples of org.omg.CORBA.ByteHolder


      }
    else
    /* Passes various parameters in both directions. */
    if (a_method.equals("passSimple"))
      {
        ByteHolder an_octet = new ByteHolder();
        an_octet.value = in.read_octet();

        int a_long = in.read_long();
        ShortHolder a_short = new ShortHolder();
        a_short.value = in.read_short();
View Full Code Here


    object.theField(17);
  }

  public void testParameters()
  {
    ByteHolder a_byte = new ByteHolder((byte) 0);
    ShortHolder a_short = new ShortHolder((short) 3);
    StringHolder a_string = new StringHolder("[string 4]");

    // This is an 'out' parameter; the value must not be passed to servant.
    DoubleHolder a_double = new DoubleHolder(56.789);
View Full Code Here

  public void testParameters()
  {
    Request r =
      object._create_request(null, "passSimple", orb.create_list(0), null);

    ByteHolder a_byte = new ByteHolder((byte) 0);
    ShortHolder a_short = new ShortHolder((short) 3);
    StringHolder a_string = new StringHolder("[string 4]");

    // This is an 'out' parameter; the value must not be passed to servant.
    DoubleHolder a_double = new DoubleHolder(56.789);
View Full Code Here

        throws Exception
    {
        byte testValue = (byte) 0xFF;

        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new ByteHolder(testValue));
        assertEquals(testValue, outAny.extract_octet());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_octet());
View Full Code Here

    }

    @Test
    public void test_pass_out_octet()
    {
        ByteHolder x = new ByteHolder( (byte) -1 );
        server.pass_out_octet( x );
        assertEquals( (byte)23, x.value );
    }
View Full Code Here

    }

    @Test
    public void test_pass_inout_octet()
    {
        ByteHolder x = new ByteHolder( (byte) -1 );
        server.pass_inout_octet( x );
        assertEquals( (byte)0, x.value );
    }
View Full Code Here

        throws Exception
    {
        byte testValue = (byte) 0xFF;

        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new ByteHolder(testValue));
        assertEquals(testValue, outAny.extract_octet());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_octet());
View Full Code Here

TOP

Related Classes of org.omg.CORBA.ByteHolder

Copyright © 2018 www.massapicom. 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.