public static CompressionType getDumpFileCompressionType(String fileName) {
		if (fileName.endsWith(".gz")) {
			return CompressionType.GZIP;
		} else if (fileName.endsWith(".bz2")) {
			return CompressionType.BZ2;
		} else {
			return CompressionType.NONE;
		}
	}
public static CompressionType getDumpFileCompressionType ( String fileName ) { if ( fileName . endsWith ( ".gz" ) ) { return CompressionType . GZIP ; } else if ( fileName . endsWith ( ".bz2" ) ) { return CompressionType . BZ2 ; } else { return CompressionType . NONE ; } }
Returns the compression type of this kind of dump file using file suffixes

@param fileName the name of the file
@return compression type
@throws IllegalArgumentException
if the given dump file type is not known