KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > IOP > CodecFactoryHelper


1 package org.omg.IOP;
2
3
4 /**
5 * org/omg/IOP/CodecFactoryHelper.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/PortableInterceptor/IOP.idl
8 * Saturday, February 9, 2008 9:40:05 AM GMT
9 */

10
11
12 /**
13    * <code>Codecs</code> are obtained from the <code>CodecFactory</code>.
14    * The <code>CodecFactory</code> is obtained through a call to
15    * <code>ORB.resolve_initial_references( "CodecFactory" )</code>.
16    */

17 abstract public class CodecFactoryHelper
18 {
19   private static String JavaDoc _id = "IDL:omg.org/IOP/CodecFactory:1.0";
20
21   public static void insert (org.omg.CORBA.Any JavaDoc a, org.omg.IOP.CodecFactory JavaDoc that)
22   {
23     org.omg.CORBA.portable.OutputStream JavaDoc 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 JavaDoc extract (org.omg.CORBA.Any JavaDoc a)
30   {
31     return read (a.create_input_stream ());
32   }
33
34   private static org.omg.CORBA.TypeCode JavaDoc __typeCode = null;
35   synchronized public static org.omg.CORBA.TypeCode JavaDoc 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 JavaDoc id ()
45   {
46     return _id;
47   }
48
49   public static org.omg.IOP.CodecFactory JavaDoc read (org.omg.CORBA.portable.InputStream JavaDoc istream)
50   {
51       throw new org.omg.CORBA.MARSHAL JavaDoc ();
52   }
53
54   public static void write (org.omg.CORBA.portable.OutputStream JavaDoc ostream, org.omg.IOP.CodecFactory JavaDoc value)
55   {
56       throw new org.omg.CORBA.MARSHAL JavaDoc ();
57   }
58
59   public static org.omg.IOP.CodecFactory JavaDoc narrow (org.omg.CORBA.Object JavaDoc obj)
60   {
61     if (obj == null)
62       return null;
63     else if (obj instanceof org.omg.IOP.CodecFactory JavaDoc)
64       return (org.omg.IOP.CodecFactory JavaDoc)obj;
65     else
66       throw new org.omg.CORBA.BAD_PARAM JavaDoc ();
67   }
68
69   public static org.omg.IOP.CodecFactory JavaDoc unchecked_narrow (org.omg.CORBA.Object JavaDoc obj)
70   {
71     if (obj == null)
72       return null;
73     else if (obj instanceof org.omg.IOP.CodecFactory JavaDoc)
74       return (org.omg.IOP.CodecFactory JavaDoc)obj;
75     else
76       throw new org.omg.CORBA.BAD_PARAM JavaDoc ();
77   }
78
79 }
80
Popular Tags