CodecOperationspublic interface CodecOperations 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. The Codec provides a mechanism
to transfer these components between their IDL data types and their CDR
encapsulation representations.
A Codec is obtained from the CodecFactory .
The CodecFactory is obtained through a call to
ORB.resolve_initial_references( "CodecFactory" ) . |
Methods Summary |
---|
public org.omg.CORBA.Any | decode(byte[] data)Decodes the given byte array into an Any based on the encoding
format effective for this Codec .
| public org.omg.CORBA.Any | decode_value(byte[] data, org.omg.CORBA.TypeCode tc)Decodes the given byte array into an Any based on the given
TypeCode and the encoding format effective for
this Codec .
| public byte[] | encode(org.omg.CORBA.Any data)Converts the given any into a byte array based on the encoding
format effective for this Codec .
| public byte[] | encode_value(org.omg.CORBA.Any data)Converts the given any into a byte array based on the encoding
format effective for this Codec. Only the data from the Any is
encoded, not the TypeCode .
|
|