format/src/main/java/com/github/sadikovi/riff/Riff.java
/**
   * Infer compression codec from file name.
   * @param path path to the file
   * @return compression codec or null for uncompressed
   */
Infer compression codec from file name.
@param path path to the file
@return compression codec or null for uncompressed
Infer compression codec from file name . @param path path to the file @return compression codec or null for uncompressed
protected static CompressionCodec inferCompressionCodec(Path path) {
    String name = path.getName();
    int start = name.lastIndexOf('.');
    String ext = (start <= 0) ? "" : name.substring(start);
    return CompressionCodecFactory.forFileExt(ext);
  }
protected static CompressionCodec inferCompressionCodec ( Path path ) { String name = path . getName ( ) ; int start = name . lastIndexOf ( '.' ) ; String ext = ( start <= 0 ) ? "" : name . substring ( start ) ; return CompressionCodecFactory . forFileExt ( ext ) ; }
Infer compression codec from file name.
Infer compression codec from file name .