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 StringHolder implements Streamable { 36 37 41 public String value; 42 43 47 public StringHolder() { 48 } 49 50 58 public StringHolder(String initial) { 59 value = initial; 60 } 61 62 68 public void _read(InputStream input) { 69 value = input.read_string(); 70 } 71 72 78 public void _write(OutputStream output) { 79 output.write_string(value); 80 } 81 82 89 public org.omg.CORBA.TypeCode _type() { 90 return ORB.init().get_primitive_tc(TCKind.tk_string); 91 } 92 } 93 | Popular Tags |