Package org.omg.IOP
Class CodecHelper
- java.lang.Object
-
- org.omg.IOP.CodecHelper
-
public abstract class CodecHelper extends java.lang.Object
The formats of IOR components and service context data used by ORB services are often defined as CDR encapsulations encoding instances of IDL defined data types. TheCodec
provides a mechanism to transfer these components between their IDL data types and their CDR encapsulation representations.A
Codec
is obtained from theCodecFactory
. TheCodecFactory
is obtained through a call toORB.resolve_initial_references( "CodecFactory" )
.
-
-
Field Summary
Fields Modifier and Type Field Description private static TypeCode
__typeCode
private static java.lang.String
_id
-
Constructor Summary
Constructors Constructor Description CodecHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Codec
extract(Any a)
static java.lang.String
id()
static void
insert(Any a, Codec that)
static Codec
narrow(Object obj)
static Codec
read(InputStream istream)
static TypeCode
type()
static Codec
unchecked_narrow(Object obj)
static void
write(OutputStream ostream, Codec value)
-
-
-
Field Detail
-
_id
private static java.lang.String _id
-
__typeCode
private static TypeCode __typeCode
-
-
Method Detail
-
type
public static TypeCode type()
-
id
public static java.lang.String id()
-
read
public static Codec read(InputStream istream)
-
write
public static void write(OutputStream ostream, Codec value)
-
-