org.mmbase.util.images
Class Factory

Package class diagram package Factory
java.lang.Object
  extended by org.mmbase.util.images.Factory

public class Factory
extends Object

Loads the ImageConverters and ImageInformers.

Since:
MMBase-1.8
Version:
$Id: Factory.java 44874 2011-01-14 10:40:52Z michiel $
Author:
Michiel Meeuwissen

Field Summary
protected static Class<?> DEFAULT_IMAGECONVERTER
          The ImageConvertInterface implementation to be used (defaults to ConvertImageMagic)
protected static Class<?> DEFAULT_IMAGEINFORMER
           
protected static String defaultImageFormat
          The default image format.
protected static int maxConcurrentRequests
           
protected static int maxRequests
           
protected static Map<String,String> params
           
 
Constructor Summary
Factory()
           
 
Method Summary
static Imaging.CKey getCKey(int nodeNumber, String template)
           
static String getDefaultImageFormat()
           
static ImageConversionRequest getImageConversionRequest(InputStream in, String format, ImageConversionReceiver receiver, List<String> pars)
          Triggers a image-conversion.
static ImageConversionRequest getImageConversionRequest(InputStream in, String format, ImageConversionReceiver receiver, String... pars)
           
static ImageConversionRequest getImageConversionRequest(List<String> pars, byte[] in, String format, MMObjectNode icacheNode)
           
static ImageInformer getImageInformer()
           
static Map<String,String> getParameters()
           
static void init(Map<String,String> properties)
           
static boolean isInited()
           
static void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

params

protected static final Map<String,String> params

DEFAULT_IMAGECONVERTER

protected static final Class<?> DEFAULT_IMAGECONVERTER
The ImageConvertInterface implementation to be used (defaults to ConvertImageMagic)


DEFAULT_IMAGEINFORMER

protected static final Class<?> DEFAULT_IMAGEINFORMER

maxConcurrentRequests

protected static int maxConcurrentRequests

maxRequests

protected static final int maxRequests
See Also:
Constant Field Values

defaultImageFormat

protected static String defaultImageFormat
The default image format.

Constructor Detail

Factory

public Factory()
Method Detail

init

public static void init(Map<String,String> properties)

isInited

public static boolean isInited()
Since:
MMBase-1.9.1

shutdown

public static void shutdown()
Since:
MMBase-1.9

getParameters

public static Map<String,String> getParameters()
Since:
MMBase-1.9

getDefaultImageFormat

public static String getDefaultImageFormat()

getImageInformer

public static ImageInformer getImageInformer()

getImageConversionRequest

public static ImageConversionRequest getImageConversionRequest(InputStream in,
                                                               String format,
                                                               ImageConversionReceiver receiver,
                                                               List<String> pars)
Triggers a image-conversion.

Since:
MMBase-1.9

getImageConversionRequest

public static ImageConversionRequest getImageConversionRequest(InputStream in,
                                                               String format,
                                                               ImageConversionReceiver receiver,
                                                               String... pars)
Since:
MMBase-1.9

getImageConversionRequest

public static ImageConversionRequest getImageConversionRequest(List<String> pars,
                                                               byte[] in,
                                                               String format,
                                                               MMObjectNode icacheNode)

getCKey

public static Imaging.CKey getCKey(int nodeNumber,
                                   String template)


MMBase2 Resources 2.0-SNAPSHOT - 2014-09-22T23:09