java.lang.Object
com.pervasive.datarush.io.compression.CompressionFormats
A factory for locating registered compression formats. Compression formats
are registered by name.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompressionFormatdetectFormat(Path path) Locates the identified compression format for a file based on the path.Lists the names of registered formats.static CompressionFormatlookupFormat(String name) Locates the identified compression format.
-
Method Details
-
lookupFormat
Locates the identified compression format.- Parameters:
name- the name of the format- Returns:
- a descriptor for the format
-
detectFormat
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
-
listSupportedFormats
Lists the names of registered formats.- Returns:
- a list of all registered formats.
-