1 package org.omg.CORBA; 2 3 7 8 public class ByteHolder 9 implements org.omg.CORBA.portable.Streamable  10 { 11 public byte value; 12 13 public ByteHolder(){} 14 public ByteHolder(byte o) 15 { 16 value = o; 17 } 18 19 public TypeCode _type() 20 { 21 return ORB.init().get_primitive_tc(TCKind.tk_octet); 22 } 23 24 public void _read(org.omg.CORBA.portable.InputStream in) 25 { 26 value = in.read_octet(); 27 } 28 29 public void _write(org.omg.CORBA.portable.OutputStream out) 30 { 31 out.write_octet(value); 32 } 33 } 34 35 36 | Popular Tags |