1 package org.omg.IOP; 2 3 4 10 11 12 17 abstract public class CodecFactoryHelper 18 { 19 private static String _id = "IDL:omg.org/IOP/CodecFactory:1.0"; 20 21 public static void insert (org.omg.CORBA.Any a, org.omg.IOP.CodecFactory that) 22 { 23 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 24 a.type (type ()); 25 write (out, that); 26 a.read_value (out.create_input_stream (), type ()); 27 } 28 29 public static org.omg.IOP.CodecFactory extract (org.omg.CORBA.Any a) 30 { 31 return read (a.create_input_stream ()); 32 } 33 34 private static org.omg.CORBA.TypeCode __typeCode = null; 35 synchronized public static org.omg.CORBA.TypeCode type () 36 { 37 if (__typeCode == null) 38 { 39 __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.IOP.CodecFactoryHelper.id (), "CodecFactory"); 40 } 41 return __typeCode; 42 } 43 44 public static String id () 45 { 46 return _id; 47 } 48 49 public static org.omg.IOP.CodecFactory read (org.omg.CORBA.portable.InputStream istream) 50 { 51 throw new org.omg.CORBA.MARSHAL (); 52 } 53 54 public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.IOP.CodecFactory value) 55 { 56 throw new org.omg.CORBA.MARSHAL (); 57 } 58 59 public static org.omg.IOP.CodecFactory narrow (org.omg.CORBA.Object obj) 60 { 61 if (obj == null) 62 return null; 63 else if (obj instanceof org.omg.IOP.CodecFactory ) 64 return (org.omg.IOP.CodecFactory )obj; 65 else 66 throw new org.omg.CORBA.BAD_PARAM (); 67 } 68 69 public static org.omg.IOP.CodecFactory unchecked_narrow (org.omg.CORBA.Object obj) 70 { 71 if (obj == null) 72 return null; 73 else if (obj instanceof org.omg.IOP.CodecFactory ) 74 return (org.omg.IOP.CodecFactory )obj; 75 else 76 throw new org.omg.CORBA.BAD_PARAM (); 77 } 78 79 } 80 | Popular Tags |