Class SupportedFormats


  • public final class SupportedFormats
    extends Object
    • Method Detail

      • getSupportedImageEncoders

        public static String[][] getSupportedImageEncoders()
        List of file formats by file suffix of image formats which can be encoded
        Returns:
        String[] with all supported file ending formats (ie new String[][]{{"bmp"},{"jpeg", "jpg"},{"jpx"},{"png"},{"tif", "tiff"},{"webp"}}
      • getSupportedImageDecoders

        public static String[][] getSupportedImageDecoders()
        List of file formats by file suffix of image formats which can be decoded
        Returns:
        String[] with all supported file ending formats (ie new String[][]{{"bmp"},{"jpx", "jp2"},{"jpeg", "jpg"},{"png"},{"tif", "tiff"}};
      • hasEncoderSupportForImageFormat

        public static boolean hasEncoderSupportForImageFormat​(String format)
        return true if images can be encoded to the format of this suffix (ie png)
        Parameters:
        format -
        Returns:
      • hasDecoderSupportForImageFormat

        public static boolean hasDecoderSupportForImageFormat​(String format)
        return true if image files ending with this suffix (ie png) can be Decoded
        Parameters:
        format -
        Returns:
      • getEnumFromString

        public static OutputFormat getEnumFromString​(String format)
        take case insensitive file ending and return the OutputFormat Enum or null if value not found
        Parameters:
        format -
        Returns:
        OutputFormat