rabbit.handler.convert
Interface ImageConverter

All Known Implementing Classes:
ExternalProcessConverter, JavaImageConverter

public interface ImageConverter

An image converter.

Author:
Robert Olofsson

Method Summary
 boolean canConvert()
          Check if this image converter can do any work.
 void convertImage(File from, File to, String info)
          Convert an image.
 

Method Detail

canConvert

boolean canConvert()
Check if this image converter can do any work.

Returns:
true if this image converter can convert.

convertImage

void convertImage(File from,
                  File to,
                  String info)
                  throws IOException
Convert an image.

Parameters:
from - the File that holds the source image
to - the File to store the converted image in
info - some identifier for the image (typically the uri)
Throws:
IOException - if the image conversion fails