|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.handler.convert.JavaImageConverter
public class JavaImageConverter
An image converter that uses javax.image to convert images
Constructor Summary | |
---|---|
JavaImageConverter(SProperties props)
Create a new JavaImageConverter using the given properties. |
Method Summary | |
---|---|
boolean |
canConvert()
Check if this image converter can do any work. |
void |
convertImage(File input,
File output,
String info)
Convert an image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaImageConverter(SProperties props)
props
- the properties hodling the configurationMethod Detail |
---|
public boolean canConvert()
ImageConverter
canConvert
in interface ImageConverter
public void convertImage(File input, File output, String info) throws IOException
ImageConverter
convertImage
in interface ImageConverter
input
- the File that holds the source imageoutput
- the File to store the converted image ininfo
- some identifier for the image (typically the uri)
IOException
- if the image conversion fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |