KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > ByteHolder


1 package org.omg.CORBA;
2
3 /**
4  * A Holder class for IDL's out/inout argument passing modes
5  *
6 */

7
8 public class ByteHolder
9     implements org.omg.CORBA.portable.Streamable JavaDoc
10 {
11     public byte value;
12
13     public ByteHolder(){}
14     public ByteHolder(byte o)
15     {
16         value = o;
17     }
18
19     public TypeCode JavaDoc _type()
20     {
21         return ORB.init().get_primitive_tc(TCKind.tk_octet);
22     }
23
24     public void _read(org.omg.CORBA.portable.InputStream JavaDoc in)
25     {
26         value = in.read_octet();
27     }
28
29     public void _write(org.omg.CORBA.portable.OutputStream JavaDoc out)
30     {
31         out.write_octet(value);
32     }
33 }
34
35
36
Popular Tags