KickJava   Java API By Example, From Geeks To Geeks.

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


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

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