KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > util > images > DummyImageConverter


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.util.images;
11
12 import java.util.List JavaDoc;
13 import java.util.Map JavaDoc;
14
15 /**
16  * A 'Dummy' converter for converting images when Imagemagick and JAI are not available.
17  * This class simply returns an image unchanged.
18  *
19  * @since MMBase 1.6.3
20  * @author Gerard van de Looi
21  * @version $Id: DummyImageConverter.java,v 1.4 2005/10/05 10:02:55 michiel Exp $
22  */

23 public class DummyImageConverter implements ImageConverter {
24
25     /**
26      * @see ImageConverter#init(Map)
27      */

28     public void init(Map JavaDoc params) {
29     }
30
31     /**
32      * Call for converting a specified image (byte array) using a list of (string) commands
33      * This dummy method ignores any passed commands, and simply returns the inputed list.
34      * @see ImageConverter#convertImage(byte[], String, List)
35      */

36     public byte[] convertImage(byte[] input, String JavaDoc sourceFormat, List JavaDoc commands) {
37         return input;
38     }
39
40 }
41
Popular Tags