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 @Deprecated 38 public final class PrincipalHolder implements Streamable { 39 43 public Principal value; 44 45 49 public PrincipalHolder() { 50 } 51 52 60 public PrincipalHolder(Principal initial) { 61 value = initial; 62 } 63 64 public void _read(InputStream input) { 65 value = input.read_Principal(); 66 } 67 68 public void _write(OutputStream output) { 69 output.write_Principal(value); 70 } 71 72 public org.omg.CORBA.TypeCode _type() { 73 return ORB.init().get_primitive_tc(TCKind.tk_Principal); 74 } 75 76 } 77 | Popular Tags |