rabbit.handler.convert
Class ExternalProcessConverter
java.lang.Object
rabbit.handler.convert.ExternalProcessConverter
- All Implemented Interfaces:
- ImageConverter
public class ExternalProcessConverter
- extends Object
- implements ImageConverter
An image converter that runs an external program
to do the actual conversion.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalProcessConverter
public ExternalProcessConverter(SProperties props)
canConvert
public boolean canConvert()
- Description copied from interface:
ImageConverter
- Check if this image converter can do any work.
- Specified by:
canConvert
in interface ImageConverter
convertImage
public void convertImage(File from,
File to,
String info)
throws IOException
- Description copied from interface:
ImageConverter
- Convert an image
- Specified by:
convertImage
in interface ImageConverter
- Throws:
IOException
closeStreams
public void closeStreams(Process ps)
throws IOException
- Throws:
IOException