Class CodecFactoryImpl

    • Constructor Detail

      • CodecFactoryImpl

        public CodecFactoryImpl​(ORB orb)
        Creates a new CodecFactory implementation. Stores the ORB that created this factory, for later use by the Codec.
        Parameters:
        orb - ORB that created this factory
    • Method Detail

      • create_codec

        public Codec create_codec​(Encoding enc)
                           throws UnknownEncoding
        Creates a codec of the given encoding. The only format recognized by this factory is ENCODING_CDR_ENCAPS, versions 1.0 through 1.(MAX_MINOR_VERSION_SUPPORTED).
        Specified by:
        create_codec in interface CodecFactoryOperations
        Parameters:
        enc - The encoding for which to create a Codec.
        Returns:
        A Codec obtained with the given encoding.
        Throws:
        UnknownEncoding - Thrown if this factory cannot create a Codec of the given encoding.
      • nullParam

        private void nullParam()
        Called when an invalid null parameter was passed. Throws a BAD_PARAM with a minor code of 1