Class CompressionFormats


  • public class CompressionFormats
    extends Object
    A factory for locating registered compression formats. Compression formats are registered by name.
    • 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
      • listSupportedFormats

        public static List<String> listSupportedFormats()
        Lists the names of registered formats.
        Returns:
        a list of all registered formats.