|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface ImageConverter
Interface for classes that can convert images.
| Method Summary | |
|---|---|
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)
|
| Method Detail |
|---|
void init(Map<String,String> params)
byte[] convertImage(byte[] input,
String sourceFormat,
List<String> commands)
input - 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.
long convertImage(InputStream input,
String sourceFormat,
OutputStream out,
List<String> commands)
throws IOException
input - 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 image
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||