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