|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.handler.convert.ExternalProcessConverter
public class ExternalProcessConverter
An image converter that runs an external program to do the actual conversion.
| Constructor Summary | |
|---|---|
ExternalProcessConverter(SProperties props)
Create a new ExternalProcessConverter configured from the given properties. |
|
| Method Summary | |
|---|---|
boolean |
canConvert()
Check if this image converter can do any work. |
void |
closeStreams(java.lang.Process ps)
Close the streams to the external process. |
void |
convertImage(java.io.File from,
java.io.File to,
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 ExternalProcessConverter(SProperties props)
props - the configuration for this converter| Method Detail |
|---|
public boolean canConvert()
ImageConverter
canConvert in interface ImageConverter
public void convertImage(java.io.File from,
java.io.File to,
java.lang.String info)
throws java.io.IOException
ImageConverter
convertImage in interface ImageConverterfrom - the File that holds the source imageto - the File to store the converted image ininfo - some identifier for the image (typically the uri)
java.io.IOException - if the image conversion fails
public void closeStreams(java.lang.Process ps)
throws java.io.IOException
ps - the Process that did the image conversion
java.io.IOException - if close fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||