public void addCodec ( ThriftCodec < ? > codec ) { catalog . addThriftType ( codec . getType ( ) ) ; typeCodecs . put ( codec . getType ( ) , codec ) ; }
Adds or replaces the codec associated with the type contained in the codec . This does not replace any current users of the existing codec associated with the type .