format/src/main/java/com/github/sadikovi/riff/io/CompressionCodecFactory.java
/**
   * Return file extension for provided short name that is associated with compression codec.
   * If no such name exists, exception is thrown.
   * @param name short name for codec
   * @return file extension that is associated with codec
   */
Return file extension for provided short name that is associated with compression codec.
If no such name exists, exception is thrown.
@param name short name for codec
@return file extension that is associated with codec
Return file extension for provided short name that is associated with compression codec . If no such name exists exception is thrown . @param name short name for codec @return file extension that is associated with codec
public static String fileExtForShortName(String name) {
    switch (name.toLowerCase()) {
      case ZLIB_SHORT_NAME:
        return ZLIB_FILE_EXTENSION;
      case GZIP_SHORT_NAME:
        return GZIP_FILE_EXTENSION;
      case SNAPPY_SHORT_NAME:
        return SNAPPY_FILE_EXTENSION;
      case UNCOMPRESSED_SHORT_NAME:
        return UNCOMPRESSED_FILE_EXTENSION;
      default:
        throw new UnsupportedOperationException("Unknown codec: " + name);
    }
  }
public static String fileExtForShortName ( String name ) { switch ( name . toLowerCase ( ) ) { case ZLIB_SHORT_NAME : return ZLIB_FILE_EXTENSION ; case GZIP_SHORT_NAME : return GZIP_FILE_EXTENSION ; case SNAPPY_SHORT_NAME : return SNAPPY_FILE_EXTENSION ; case UNCOMPRESSED_SHORT_NAME : return UNCOMPRESSED_FILE_EXTENSION ; default : throw new UnsupportedOperationException ( "Unknown codec: " + name ) ; } }
Return file extension for provided short name that is associated with compression codec.
Return file extension for provided short name that is associated with compression codec .