Method PutCodecType
PutCodecType(Type)
Adds a Codec type to the Lucene.Net.Codecs.DefaultCodecFactory.codecNameToTypeMap, using the name provided in the CodecNameAttribute, if present, or the name of the codec class minus the "Codec" suffix as the name by default.
Note that if a Codec with the same name already exists in the map, calling this method will update it to the new type.
Declaration
protected virtual void PutCodecType(Type codec)
Parameters
Type | Name | Description |
---|---|---|
Type | codec | A type that subclasses Codec. |