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 CharHolder implements org.omg.CORBA.portable.Streamable {
009
010 public char value;
011
012 public CharHolder() {
013 }
014
015 public CharHolder(char initial) {
016 value = initial;
017 }
018
019 public void _read(org.omg.CORBA.portable.InputStream is) {
020 value = is.read_char();
021 }
022
023 public void _write(org.omg.CORBA.portable.OutputStream os) {
024 os.write_char(value);
025 }
026
027 public org.omg.CORBA.TypeCode _type() {
028 return org.omg.CORBA.ORB.init().get_primitive_tc(TCKind.tk_char);
029 }
030
031 }