001 /***** Copyright (c) 1999 Object Management Group. Unlimited rights to 002 duplicate and use this code are hereby granted provided that this 003 copyright notice is included. 004 *****/ 005 006 package org.omg.CORBA; 007 008 final public class StringHolder implements org.omg.CORBA.portable.Streamable { 009 010 public String value; 011 012 public StringHolder() { 013 } 014 015 public StringHolder(String initial) { 016 value = initial; 017 } 018 019 public void _read(org.omg.CORBA.portable.InputStream is) { 020 value = is.read_string(); 021 } 022 023 public void _write(org.omg.CORBA.portable.OutputStream os) { 024 os.write_string(value); 025 } 026 027 public org.omg.CORBA.TypeCode _type() { 028 return org.omg.CORBA.ORB.init().get_primitive_tc(TCKind.tk_string); 029 } 030 031 }