to.etc.domui.util.images.converters
Class ImageConverterHelper
java.lang.Object
to.etc.domui.util.images.converters.ImageConverterHelper
public class ImageConverterHelper
- extends java.lang.Object
This handles a converter chain. For every operation in the chain we lookup the appropriate
factory, then we execute the conversion. For each next conversion we try to reuse the
factory if possible with the output of the previous conversion as base. If this does not
work we get another factory.
- Author:
- Frits Jalvingh
Created on Oct 7, 2008
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageConverterHelper
public ImageConverterHelper()
getSource
public ImageSpec getSource()
getTarget
public ImageSpec getTarget()
setTarget
public void setTarget(ImageSpec target)
createWorkFile
public java.io.File createWorkFile(java.lang.String ext)
throws java.io.IOException
- Creates a new tempfile. Files creates by this call will be discarded when the image
has been generated fully (when this helper is destroyed).
- Returns:
-
- Throws:
java.io.IOException
destroy
public void destroy()
executeConversionChain
public void executeConversionChain(ImageSpec src,
java.util.List<IImageConversionSpecifier> speclist)
throws java.lang.Exception
- Loop thru all conversions and convert until the image has been translated proper.
- Parameters:
src
- speclist
-
- Throws:
java.lang.Exception