KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > imageio > ImageIO


1 /*
2    SwingWT
3    Copyright(c)2004, Daniel Naab
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: dannaab@users.sourceforge.net
9 */

10
11 package swingwtx.imageio;
12
13 /**
14  * Incomplete ImageIO support
15  *
16  * @author Naab
17  * @version %I%, %G%
18  */

19 public class ImageIO
20 {
21     private static String JavaDoc[] knownImageFormats = new String JavaDoc[] {"bmp", "ico", "jpg", "jpeg", "gif", "png"};
22
23     /**
24      * Return hardcoded list of known SWT format types. I'm not aware of a SWT method to return this,
25      * but I expect that one exists.
26      */

27     public static String JavaDoc[] getReaderFormatNames()
28     {
29         return knownImageFormats;
30     }
31 }
32
Popular Tags