comparison servlet/src/digilib/io/FileOps.java @ 459:b3519a49ae51

Servlet version 1.5.9h - experimental Flashpix support with JAIDocuImage
author robcast
date Wed, 08 Feb 2006 20:30:49 +0100
parents d3abaf38fb5f
children e758a49258e8
comparison
equal deleted inserted replaced
458:eec0d8c9c3c9 459:b3519a49ae51
33 public class FileOps { 33 public class FileOps {
34 34
35 /** 35 /**
36 * Array of file extensions and corresponding mime-types. 36 * Array of file extensions and corresponding mime-types.
37 */ 37 */
38 private static String[][] ft = { { "jpg", "image/jpeg" }, 38 private static final String[][] ft = { { "jpg", "image/jpeg" },
39 { "jpeg", "image/jpeg" }, { "jp2", "image/jp2" }, 39 { "jpeg", "image/jpeg" }, { "jp2", "image/jp2" },
40 { "png", "image/png" }, { "gif", "image/gif" }, 40 { "png", "image/png" }, { "gif", "image/gif" },
41 { "tif", "image/tiff" }, { "tiff", "image/tiff" }, 41 { "tif", "image/tiff" }, { "tiff", "image/tiff" },
42 { "fpx", "image/fpx" },
42 { "txt", "text/plain" }, { "html", "text/html" }, 43 { "txt", "text/plain" }, { "html", "text/html" },
43 { "htm", "text/html" }, { "xml", "text/xml" }, 44 { "htm", "text/html" }, { "xml", "text/xml" },
44 { "svg", "image/svg+xml" } }; 45 { "svg", "image/svg+xml" }, { "meta", "text/xml" } };
45 46
46 public static Map fileTypes; 47 public static Map fileTypes;
47 48
48 public static List imageExtensions; 49 public static List imageExtensions;
49 50