1 package org.omg.CORBA; 2 3 7 8 public class BooleanHolder 9 implements org.omg.CORBA.portable.Streamable  10 { 11 public boolean value; 12 13 public BooleanHolder(){} 14 15 public BooleanHolder(boolean o) 16 { 17 value = o; 18 } 19 20 public TypeCode _type() 21 { 22 return ORB.init().get_primitive_tc(TCKind.tk_boolean); 23 } 24 25 public void _read(org.omg.CORBA.portable.InputStream in) 26 { 27 value = in.read_boolean(); 28 } 29 30 public void _write(org.omg.CORBA.portable.OutputStream out) 31 { 32 out.write_boolean(value); 33 } 34 35 } 36 37 38 | Popular Tags |