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 15 37 public final class ObjectHolder implements Streamable { 38 42 public Object value; 43 44 48 public ObjectHolder() { 49 } 50 51 59 public ObjectHolder(Object initial) { 60 value = initial; 61 } 62 63 70 public void _read(InputStream input) { 71 value = input.read_Object(); 72 } 73 74 80 public void _write(OutputStream output) { 81 output.write_Object(value); 82 } 83 84 91 public org.omg.CORBA.TypeCode _type() { 92 return org.omg.CORBA.ORB.init().get_primitive_tc(TCKind.tk_objref); 93 } 94 } 95 | Popular Tags |