String function ( String arg0 ) { String loc0 = arg0 . toLowerCase ( Locale . ENGLISH ) ; int loc1 = loc0 . length ( ) ; for ( int loc2 = 4 ; loc2 <= 5 && loc2 < loc1 ; loc2 ++ ) { Object loc3 = compressSuffix . get ( loc0 . substring ( loc1 - loc2 ) ) ; if ( loc3 != null ) { return arg0 . substring ( 0 , loc1 - loc2 ) + loc3 ; } } return arg0 + "srini_string" ; }
maps the given filename to the name that the file should have after compression with gzip . common file types with custom suffixes for compressed versions are automatically detected and correctly mapped . for example the name `` package.tar '' is mapped to `` package.tgz '' . if no custom mapping is applicable , then the default '' . gz '' suffix is appended to the filename . concode_field_sep Map uncompressSuffix concode_elem_sep Map compressSuffix concode_field_sep String getUncompressedFilename concode_elem_sep boolean isCompressedFilename