- java.lang.Object
-
- com.pervasive.datarush.io.compression.CompressionFormats
-
public class CompressionFormats extends Object
A factory for locating registered compression formats. Compression formats are registered by name.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompressionFormat
detectFormat(Path path)
Locates the identified compression format for a file based on the path.static List<String>
listSupportedFormats()
Lists the names of registered formats.static CompressionFormat
lookupFormat(String name)
Locates the identified compression format.
-
-
-
Method Detail
-
lookupFormat
public static CompressionFormat lookupFormat(String name)
Locates the identified compression format.- Parameters:
name
- the name of the format- Returns:
- a descriptor for the format
-
detectFormat
public static CompressionFormat detectFormat(Path path)
Locates the identified compression format for a file based on the path.- Parameters:
path
- the path to the file to be identified- Returns:
- a descriptor for the discovered format
-
-