to.etc.domui.util.images.converters
Class ImageConverterRegistry

java.lang.Object
  extended by to.etc.domui.util.images.converters.ImageConverterRegistry

public final class ImageConverterRegistry
extends java.lang.Object


Method Summary
static IImageConverter getBestConverter(java.lang.String mime, java.util.List<IImageConversionSpecifier> convs)
          Select the best converter to use to handle the (first) conversions in the list.
static java.util.List<IImageIdentifier> getIdentList()
           
static ImageInfo identify(java.lang.String mime, java.io.File src)
           
static void registerFactory(IImageConverter c)
           
static void registerIdentifier(IImageIdentifier c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)