// DO NOT EDIT THIS FILE; IT IS GENERATED BY make-mt.pl FROM mime.types /* MediaTypes.java * * This file is part of Gzz. * * Gzz is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Gzz is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General * Public License for more details. * * You should have received a copy of the GNU Lesser General * Public License along with Gzz; if not, write to the Free * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * * */ /* * Written by Antti-Juhani Kaijanaho */ package gzz.mediaserver; class MediaTypes { private static java.util.HashMap types = new java.util.HashMap(); public static String getType(String ext) { Object o = types.get(ext); if (o == null) return null; return (String)o; } static { types.put("csm", "application/cu-seeme"); types.put("cu", "application/cu-seeme"); types.put("tsp", "application/dsptype"); types.put("xls", "application/vnd.ms-excel"); types.put("spl", "application/futuresplash"); types.put("hqx", "application/mac-binhex40"); types.put("doc", "application/msword"); types.put("dot", "application/msword"); types.put("bin", "application/octet-stream"); types.put("oda", "application/oda"); types.put("pdf", "application/pdf"); types.put("pgp", "application/pgp-signature"); types.put("ps", "application/postscript"); types.put("ai", "application/postscript"); types.put("eps", "application/postscript"); types.put("ppt", "application/vnd.ms-powerpoint"); types.put("rtf", "application/rtf"); types.put("wmlc", "application/vnd.wap.wmlc"); types.put("wmlsc", "application/vnd.wap.wmlscriptc"); types.put("wp5", "application/wordperfect5.1"); types.put("zip", "application/zip"); types.put("wk", "application/x-123"); types.put("bcpio", "application/x-bcpio"); types.put("pgn", "application/x-chess-pgn"); types.put("cpio", "application/x-cpio"); types.put("deb", "application/x-debian-package"); types.put("dcr", "application/x-director"); types.put("dir", "application/x-director"); types.put("dxr", "application/x-director"); types.put("dms", "application/x-dms"); types.put("dvi", "application/x-dvi"); types.put("pfa", "application/x-font"); types.put("pfb", "application/x-font"); types.put("gsf", "application/x-font"); types.put("pcf", "application/x-font"); types.put("pcf.Z", "application/x-font"); types.put("gtar", "application/x-gtar"); types.put("tgz", "application/x-gtar"); types.put("hdf", "application/x-hdf"); types.put("phtml", "application/x-httpd-php"); types.put("pht", "application/x-httpd-php"); types.put("php", "application/x-httpd-php"); types.put("php3", "application/x-httpd-php3"); types.put("phps", "application/x-httpd-php3-source"); types.put("php3p", "application/x-httpd-php3-preprocessed"); types.put("class", "application/x-java"); types.put("js", "application/x-javascript"); types.put("chrt", "application/x-kchart"); types.put("kil", "application/x-killustrator"); types.put("kpr", "application/x-kpresenter"); types.put("kpt", "application/x-kpresenter"); types.put("ksp", "application/x-kspread"); types.put("kwd", "application/x-kword"); types.put("kwt", "application/x-kword"); types.put("latex", "application/x-latex"); types.put("lha", "application/x-lha"); types.put("lzh", "application/x-lzh"); types.put("lzx", "application/x-lzx"); types.put("frm", "application/x-maker"); types.put("maker", "application/x-maker"); types.put("frame", "application/x-maker"); types.put("fm", "application/x-maker"); types.put("fb", "application/x-maker"); types.put("book", "application/x-maker"); types.put("fbdoc", "application/x-maker"); types.put("mif", "application/x-mif"); types.put("com", "application/x-msdos-program"); types.put("exe", "application/x-msdos-program"); types.put("bat", "application/x-msdos-program"); types.put("dll", "application/x-msdos-program"); types.put("nc", "application/x-netcdf"); types.put("cdf", "application/x-netcdf"); types.put("pac", "application/x-ns-proxy-autoconfig"); types.put("o", "application/x-object"); types.put("oza", "application/x-oz-application"); types.put("pl", "application/x-perl"); types.put("pm", "application/x-perl"); types.put("rpm", "application/x-redhat-package-manager"); types.put("shar", "application/x-shar"); types.put("swf", "application/x-shockwave-flash"); types.put("swfl", "application/x-shockwave-flash"); types.put("sit", "application/x-stuffit"); types.put("sv4cpio", "application/x-sv4cpio"); types.put("sv4crc", "application/x-sv4crc"); types.put("tar", "application/x-tar"); types.put("gf", "application/x-tex-gf"); types.put("pk", "application/x-tex-pk"); types.put("PK", "application/x-tex-pk"); types.put("texinfo", "application/x-texinfo"); types.put("texi", "application/x-texinfo"); types.put("~", "application/x-trash"); types.put("%", "application/x-trash"); types.put("bak", "application/x-trash"); types.put("old", "application/x-trash"); types.put("sik", "application/x-trash"); types.put("t", "application/x-troff"); types.put("tr", "application/x-troff"); types.put("roff", "application/x-troff"); types.put("man", "application/x-troff-man"); types.put("me", "application/x-troff-me"); types.put("ms", "application/x-troff-ms"); types.put("ustar", "application/x-ustar"); types.put("src", "application/x-wais-source"); types.put("wz", "application/x-wingz"); types.put("au", "audio/basic"); types.put("snd", "audio/basic"); types.put("mid", "audio/midi"); types.put("midi", "audio/midi"); types.put("mpga", "audio/mpeg"); types.put("mpega", "audio/mpeg"); types.put("mp2", "audio/mpeg"); types.put("mp3", "audio/mpeg"); types.put("m3u", "audio/mpegurl"); types.put("sid", "audio/prs.sid"); types.put("aif", "audio/x-aiff"); types.put("aiff", "audio/x-aiff"); types.put("aifc", "audio/x-aiff"); types.put("gsm", "audio/x-gsm"); types.put("ra", "audio/x-pn-realaudio"); types.put("rm", "audio/x-pn-realaudio"); types.put("ram", "audio/x-pn-realaudio"); types.put("wav", "audio/x-wav"); types.put("gif", "image/gif"); types.put("ief", "image/ief"); types.put("jpeg", "image/jpeg"); types.put("jpg", "image/jpeg"); types.put("jpe", "image/jpeg"); types.put("pcx", "image/pcx"); types.put("png", "image/png"); types.put("tiff", "image/tiff"); types.put("tif", "image/tiff"); types.put("wbmp", "image/vnd.wap.wbmp"); types.put("ras", "image/x-cmu-raster"); types.put("cdr", "image/x-coreldraw"); types.put("pat", "image/x-coreldrawpattern"); types.put("cdt", "image/x-coreldrawtemplate"); types.put("cpt", "image/x-corelphotopaint"); types.put("bmp", "image/x-ms-bmp"); types.put("pnm", "image/x-portable-anymap"); types.put("pbm", "image/x-portable-bitmap"); types.put("pgm", "image/x-portable-graymap"); types.put("ppm", "image/x-portable-pixmap"); types.put("rgb", "image/x-rgb"); types.put("xbm", "image/x-xbitmap"); types.put("xpm", "image/x-xpixmap"); types.put("xwd", "image/x-xwindowdump"); types.put("csv", "text/comma-separated-values"); types.put("css", "text/css"); types.put("htm", "text/html"); types.put("html", "text/html"); types.put("xhtml", "text/html"); types.put("mml", "text/mathml"); types.put("txt", "text/plain"); types.put("text", "text/plain"); types.put("rtx", "text/richtext"); types.put("tsv", "text/tab-separated-values"); types.put("wml", "text/vnd.wap.wml"); types.put("wmls", "text/vnd.wap.wmlscript"); types.put("xml", "text/xml"); types.put("h++", "text/x-c++hdr"); types.put("hpp", "text/x-c++hdr"); types.put("hxx", "text/x-c++hdr"); types.put("hh", "text/x-c++hdr"); types.put("c++", "text/x-c++src"); types.put("cpp", "text/x-c++src"); types.put("cxx", "text/x-c++src"); types.put("cc", "text/x-c++src"); types.put("h", "text/x-chdr"); types.put("csh", "text/x-csh"); types.put("c", "text/x-csrc"); types.put("java", "text/x-java"); types.put("moc", "text/x-moc"); types.put("p", "text/x-pascal"); types.put("pas", "text/x-pascal"); types.put("etx", "text/x-setext"); types.put("sh", "text/x-sh"); types.put("tcl", "text/x-tcl"); types.put("tk", "text/x-tcl"); types.put("tex", "text/x-tex"); types.put("ltx", "text/x-tex"); types.put("sty", "text/x-tex"); types.put("cls", "text/x-tex"); types.put("vcs", "text/x-vcalendar"); types.put("vcf", "text/x-vcard"); types.put("dl", "video/dl"); types.put("fli", "video/fli"); types.put("gl", "video/gl"); types.put("mpeg", "video/mpeg"); types.put("mpg", "video/mpeg"); types.put("mpe", "video/mpeg"); types.put("qt", "video/quicktime"); types.put("mov", "video/quicktime"); types.put("asf", "video/x-ms-asf"); types.put("asx", "video/x-ms-asf"); types.put("avi", "video/x-msvideo"); types.put("movie", "video/x-sgi-movie"); types.put("vrm", "x-world/x-vrml"); types.put("vrml", "x-world/x-vrml"); types.put("wrl", "x-world/x-vrml"); } }