Package net.coobird.thumbnailator.util
Class ThumbnailatorUtils
- java.lang.Object
-
- net.coobird.thumbnailator.util.ThumbnailatorUtils
-
public final class ThumbnailatorUtils extends java.lang.ObjectA utility class for Thumbnailator.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateThumbnailatorUtils()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 aListof supported output formats.static java.util.List<java.lang.String>getSupportedOutputFormatTypes(java.lang.String format)Returns aListof supported output formats types for a specified output format.static booleanisSupportedOutputFormat(java.lang.String format)Returns whether a specified format is supported for output.static booleanisSupportedOutputFormatType(java.lang.String format, java.lang.String type)Returns whether a specified format type is supported for a specified output format.
-
-
-
Method Detail
-
getSupportedOutputFormats
public static java.util.List<java.lang.String> getSupportedOutputFormats()
Returns aListof supported output formats.- Returns:
- A
Listof 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:
trueif the format is supported,falseotherwise.
-
getSupportedOutputFormatTypes
public static java.util.List<java.lang.String> getSupportedOutputFormatTypes(java.lang.String format)
Returns aListof supported output formats types for a specified output format.- Parameters:
format- The output format.- Returns:
- A
Listof 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:
trueif the format type is supported by the specified supported format,falseotherwise.
-
-