Class ThumbnailatorUtils


  • public final class ThumbnailatorUtils
    extends java.lang.Object
    A utility class for Thumbnailator.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ThumbnailatorUtils()
      This class is not intended to be instantiated.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> getSupportedOutputFormats()
      Returns a List of supported output formats.
      static java.util.List<java.lang.String> getSupportedOutputFormatTypes​(java.lang.String format)
      Returns a List of supported output formats types for a specified output format.
      static boolean isSupportedOutputFormat​(java.lang.String format)
      Returns whether a specified format is supported for output.
      static boolean isSupportedOutputFormatType​(java.lang.String format, java.lang.String type)
      Returns whether a specified format type is supported for a specified output format.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThumbnailatorUtils

        private ThumbnailatorUtils()
        This class is not intended to be instantiated.
    • Method Detail

      • getSupportedOutputFormats

        public static java.util.List<java.lang.String> getSupportedOutputFormats()
        Returns a List of supported output formats.
        Returns:
        A List of supported output formats. If no formats are supported, an empty list is returned.
      • isSupportedOutputFormat

        public static boolean isSupportedOutputFormat​(java.lang.String format)
        Returns whether a specified format is supported for output.
        Parameters:
        format - The format to check whether it is supported or not.
        Returns:
        true if the format is supported, false otherwise.
      • getSupportedOutputFormatTypes

        public static java.util.List<java.lang.String> getSupportedOutputFormatTypes​(java.lang.String format)
        Returns a List of supported output formats types for a specified output format.
        Parameters:
        format - The output format.
        Returns:
        A List of supported output formats types. If no formats types are supported, or if compression is not supported for the specified format, then an empty list is returned.
      • isSupportedOutputFormatType

        public static boolean isSupportedOutputFormatType​(java.lang.String format,
                                                          java.lang.String type)
        Returns whether a specified format type is supported for a specified output format.
        Parameters:
        format - The format to check whether it is supported or not.
        type - The format type to check whether it is supported or not.
        Returns:
        true if the format type is supported by the specified supported format, false otherwise.