kryshen.tema.functions
Class ImageConverter

java.lang.Object
  extended by kryshen.tema.Function
      extended by kryshen.tema.functions.ImageConverter

public class ImageConverter
extends Function

Convert images to specified format.

Author:
Mikhail A. Kryshen

Field Summary
static Function IMAGE
           
 
Constructor Summary
ImageConverter()
           
 
Method Summary
static void convert(java.io.File source, java.io.File dest, java.lang.String format, int maxWidth, int maxHeight)
           
 int invoke(FunctionDataParser fdp, java.io.Writer out)
          Invoke the function.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGE

public static final Function IMAGE
Constructor Detail

ImageConverter

public ImageConverter()
Method Detail

invoke

public int invoke(FunctionDataParser fdp,
                  java.io.Writer out)
           throws java.io.IOException,
                  TemplateException
Description copied from class: Function
Invoke the function.

Specified by:
invoke in class Function
Parameters:
fdp - FunctionDataParser to access function arguments.
out - Writer for the function output.
Throws:
java.io.IOException
TemplateException

convert

public static void convert(java.io.File source,
                           java.io.File dest,
                           java.lang.String format,
                           int maxWidth,
                           int maxHeight)
                    throws java.io.IOException,
                           java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException