01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: ImageContentLoader.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.cmf.loader;
09:
10: import com.uwyn.rife.cmf.loader.image.*;
11:
12: import java.awt.Image;
13: import java.util.ArrayList;
14: import java.util.List;
15:
16: /**
17: * Loads raw content as image data. The internal type to which everything will
18: * be converted is <code>java.awt.Image</code>.
19: *
20: * @author Geert Bevin (gbevin[remove] at uwyn dot com)
21: * @version $Revision: 3634 $
22: * @since 1.0
23: * @see com.uwyn.rife.cmf.loader.ContentLoader
24: */
25: public class ImageContentLoader extends ContentLoader<Image> {
26: private static List<ContentLoaderBackend<Image>> sBackends = null;
27:
28: static {
29: sBackends = new ArrayList<ContentLoaderBackend<Image>>();
30: sBackends.add(new ImageIOLoader());
31: sBackends.add(new JaiLoader());
32: sBackends.add(new JMagickLoader());
33: sBackends.add(new JimiLoader());
34: sBackends.add(new ImageJLoader());
35: sBackends.add(new ImageroReaderLoader());
36: }
37:
38: public List<ContentLoaderBackend<Image>> getBackends() {
39: return sBackends;
40: }
41: }
|