to.etc.domui.util.images.converters
Class ImageConverterRegistry
java.lang.Object
to.etc.domui.util.images.converters.ImageConverterRegistry
public final class ImageConverterRegistry
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
registerFactory
public static void registerFactory(IImageConverter c)
registerIdentifier
public static void registerIdentifier(IImageIdentifier c)
getIdentList
public static java.util.List<IImageIdentifier> getIdentList()
getBestConverter
@Nonnull
public static IImageConverter getBestConverter(java.lang.String mime,
java.util.List<IImageConversionSpecifier> convs)
throws java.lang.Exception
- Select the best converter to use to handle the (first) conversions in the list.
- Parameters:
mime
- convs
-
- Returns:
-
- Throws:
java.lang.Exception
identify
public static ImageInfo identify(java.lang.String mime,
java.io.File src)