public abstract class AbstractImageConverter extends Object implements ImageConverter
convertImage(byte[], String,
List) or convertImage(InputStream, String, OutputStream, List).| Constructor and Description |
|---|
AbstractImageConverter() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
convertImage(byte[] input,
String sourceFormat,
List<String> commands)
This functions converts an image by the given parameters
|
long |
convertImage(InputStream input,
String sourceFormat,
OutputStream out,
List<String> commands)
This functions converts an image by the given parameters
|
void |
init(Map<String,String> params) |
public void init(Map<String,String> params)
init in interface ImageConverterImageConverter.init(java.util.Map)public byte[] convertImage(byte[] input,
String sourceFormat,
List<String> commands)
ImageConverterconvertImage in interface ImageConverterinput - an array of byte which represents the original imagesourceFormat - original image formatcommands - a List of Strings containing commands which are operations on the image which will be returned.bytes containing the new converted image.ImageConverter.convertImage(byte[], java.lang.String, java.util.List)public long convertImage(InputStream input, String sourceFormat, OutputStream out, List<String> commands) throws IOException
ImageConverterconvertImage in interface ImageConverterinput - stream of byte which represents the original imagesourceFormat - original image formatout - stream of bytes containing the new converted image.commands - a List of Strings containing commands which are operations on the image which will be returned.IOException - When an error occurs when converting the imageImageConverter.convertImage(java.io.InputStream, java.lang.String, java.io.OutputStream, java.util.List)MMBase 1.9-SNAPSHOT - ${javadoctimestamp}