1 7 8 9 package org.omg.CORBA; 10 11 import org.omg.CORBA.portable.Streamable ; 12 import org.omg.CORBA.portable.InputStream ; 13 import org.omg.CORBA.portable.OutputStream ; 14 15 36 public final class CharHolder implements Streamable { 37 38 42 public char value; 43 44 48 public CharHolder() { 49 } 50 51 58 public CharHolder(char initial) { 59 value = initial; 60 } 61 62 69 public void _read(InputStream input) { 70 value = input.read_char(); 71 } 72 73 79 public void _write(OutputStream output) { 80 output.write_char(value); 81 } 82 83 91 public org.omg.CORBA.TypeCode _type() { 92 return ORB.init().get_primitive_tc(TCKind.tk_char); 93 } 94 } 95 | Popular Tags |