org.jacorb.orb.portableInterceptor
Class CodecImpl

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.jacorb.orb.portableInterceptor.CodecImpl
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, org.omg.IOP.Codec, org.omg.IOP.CodecOperations

public class CodecImpl
extends org.omg.CORBA.LocalObject
implements org.omg.IOP.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.4 2006/07/07 10:55:57 alphonse.bendt Exp $
Author:
Nicolas Noffke
See Also:
Serialized Form

Constructor Summary
CodecImpl(org.omg.CORBA.ORB orb, org.omg.IOP.Encoding enc)
           
 
Method Summary
 org.omg.CORBA.Any decode_value(byte[] data, org.omg.CORBA.TypeCode tc)
           
 org.omg.CORBA.Any decode(byte[] data)
           
 byte[] encode_value(org.omg.CORBA.Any data)
           
 byte[] encode(org.omg.CORBA.Any data)
           
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

CodecImpl

public CodecImpl(org.omg.CORBA.ORB orb,
                 org.omg.IOP.Encoding enc)
          throws org.omg.IOP.CodecFactoryPackage.UnknownEncoding
Throws:
org.omg.IOP.CodecFactoryPackage.UnknownEncoding
Method Detail

decode

public org.omg.CORBA.Any decode(byte[] data)
                         throws org.omg.IOP.CodecPackage.FormatMismatch
Specified by:
decode in interface org.omg.IOP.CodecOperations
Throws:
org.omg.IOP.CodecPackage.FormatMismatch

decode_value

public org.omg.CORBA.Any decode_value(byte[] data,
                                      org.omg.CORBA.TypeCode tc)
                               throws org.omg.IOP.CodecPackage.FormatMismatch,
                                      org.omg.IOP.CodecPackage.TypeMismatch
Specified by:
decode_value in interface org.omg.IOP.CodecOperations
Throws:
org.omg.IOP.CodecPackage.FormatMismatch
org.omg.IOP.CodecPackage.TypeMismatch

encode

public byte[] encode(org.omg.CORBA.Any data)
              throws org.omg.IOP.CodecPackage.InvalidTypeForEncoding
Specified by:
encode in interface org.omg.IOP.CodecOperations
Throws:
org.omg.IOP.CodecPackage.InvalidTypeForEncoding

encode_value

public byte[] encode_value(org.omg.CORBA.Any data)
                    throws org.omg.IOP.CodecPackage.InvalidTypeForEncoding
Specified by:
encode_value in interface org.omg.IOP.CodecOperations
Throws:
org.omg.IOP.CodecPackage.InvalidTypeForEncoding