public class DummyImageConverter extends Object implements ImageConverter
| Constructor and Description |
|---|
DummyImageConverter() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
convertImage(byte[] input,
String sourceFormat,
List<String> commands)
Call for converting a specified image (byte array) using a list of (string) commands
This dummy method ignores any passed commands, and simply returns the inputed list.
|
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(Map)public byte[] convertImage(byte[] input,
String sourceFormat,
List<String> commands)
convertImage 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[], String, 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 imageMMBase 1.9-SNAPSHOT - ${javadoctimestamp}