     /**
      * The CodecFactory manages mappings between ActionScript Objects (of certain
      * Classes) and PostgreSQL column values (of certain oids). A Class can be mapped
-     * to an oid registering an encoder, and an oid to a Class through a decoder.
+     * to an oid by registering an encoder, and an oid to a Class through a decoder.
      * Only a single mapping can exist for a given oid (or Class) at any given time.
+     * <p/>
+     * Default encoders and decoders can also be registered.
+     * <p/>
+     * No encoders or decoders are registered by default.
      *
      * @see org.postgresql.Oid
      * @see Class

        private var _decoders:Dictionary;
        private var _encoders:Dictionary;

        /**
         * Constructor. No encoders or decoders are registered by default.
         */
        public function CodecFactory() {
            _decoders = new Dictionary();

        public function getEncoder(clazz:Class):IPGTypeEncoder {
            if (clazz in _encoders) {
                return _encoders[clazz];
            } else if (_defaultEncoder) {
                return _defaultEncoder;
            } else {
                throw new CodecError("Could not find suitable encoder", CodecError.ENCODE, null, Oid.UNSPECIFIED, clazz);
            }
