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"},{"heic", "heif"}, {"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"},{"gif"},{"heic"},{"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 - three letter image prefix
        Returns:
        value to show if image can be written by jdeli
      • hasDecoderSupportForImageFormat

        public static boolean hasDecoderSupportForImageFormat​(String format)
        return true if image files ending with this suffix (ie png) can be Decoded
        Parameters:
        format - three letter image prefix
        Returns:
        value to show if image can be read by jdeli
      • 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 - three letter image prefix
        Returns:
        OutputFormat possible suffices for support image or null