CompressionCodec function ( String arg0 ) { if ( codecsByClassName == null ) { return null ; } CompressionCodec loc0 = getCodecByClassName ( arg0 ) ; if ( loc0 == null ) { loc0 = codecsByName . get ( StringUtils . toLowerCase ( arg0 ) ) ; } return loc0 ; }
find the relevant compression codec for the codec 's canonical class name or by codec alias . codec aliases are case insensitive . the code alias is the short class name without the package name . if the short class name ends with ` codec ' , then there are two aliases for the codec , the complete short class name and the short class name without the ` codec ' ending . for example for the ` gzipcodec ' codec class name the alias are ` gzip ' and ` gzipcodec ' . concode_field_sep Map<String,CompressionCodec> codecsByName concode_elem_sep ServiceLoader<CompressionCodec> CODEC_PROVIDERS concode_elem_sep SortedMap<String,CompressionCodec> codecs concode_elem_sep HashMap<String,CompressionCodec> codecsByClassName concode_elem_sep Log LOG concode_field_sep void setCodecClasses concode_elem_sep CompressionCodec getCodec concode_elem_sep String toString concode_elem_sep void main concode_elem_sep List<Class<? extends CompressionCodec>> getCodecClasses concode_elem_sep Class<? extends CompressionCodec> getCodecClassByName concode_elem_sep void addCodec concode_elem_sep CompressionCodec getCodecByClassName concode_elem_sep String removeSuffix