|
||||||||||
| 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(java.io.File input,
java.io.File output,
java.lang.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 configuration| Method Detail |
|---|
public boolean canConvert()
ImageConverter
canConvert in interface ImageConverter
public void convertImage(java.io.File input,
java.io.File output,
java.lang.String info)
throws java.io.IOException
ImageConverter
convertImage in interface ImageConverterinput - the File that holds the source imageoutput - the File to store the converted image ininfo - some identifier for the image (typically the uri)
java.io.IOException - if the image conversion fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||