org.jacorb.orb.portableInterceptor

Class CodecImpl

Implemented Interfaces:
Codec, CodecOperations, IDLEntity, LocalInterface, Object, java.io.Serializable

public class CodecImpl
extends LocalObject
implements Codec

This class represents a codec for encoding CDR encapsulations for the supported GIOP versions 1.0-1.2 See PI SPec p.10-77ff

Version:
$Id: CodecImpl.java,v 1.2 2004/04/28 12:37:28 brose Exp $

Author:
Nicolas Noffke

Constructor Summary

CodecImpl(ORB orb, Encoding enc)

Method Summary

Any
decode(byte[] data)
Any
decode_value(byte[] data, TypeCode tc)
byte[]
encode(Any data)
byte[]
encode_value(Any data)

Methods inherited from class org.omg.CORBA.LocalObject

_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface, _get_interface_def, _get_policy, _hash, _ids, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection

Constructor Details

CodecImpl

public CodecImpl(ORB orb,
                 Encoding enc)
            throws UnknownEncoding

Method Details

decode

public Any decode(byte[] data)
            throws FormatMismatch
Specified by:
decode in interface CodecOperations


decode_value

public Any decode_value(byte[] data,
                        TypeCode tc)
            throws FormatMismatch,
                   TypeMismatch
Specified by:
decode_value in interface CodecOperations


encode

public byte[] encode(Any data)
            throws InvalidTypeForEncoding
Specified by:
encode in interface CodecOperations


encode_value

public byte[] encode_value(Any data)
            throws InvalidTypeForEncoding
Specified by:
encode_value in interface CodecOperations