001: /* ====================================================================
002: * The Jcorporate Apache Style Software License, Version 1.2 05-07-2002
003: *
004: * Copyright (c) 1995-2002 Jcorporate Ltd. All rights reserved.
005: *
006: * Redistribution and use in source and binary forms, with or without
007: * modification, are permitted provided that the following conditions
008: * are met:
009: *
010: * 1. Redistributions of source code must retain the above copyright
011: * notice, this list of conditions and the following disclaimer.
012: *
013: * 2. Redistributions in binary form must reproduce the above copyright
014: * notice, this list of conditions and the following disclaimer in
015: * the documentation and/or other materials provided with the
016: * distribution.
017: *
018: * 3. The end-user documentation included with the redistribution,
019: * if any, must include the following acknowledgment:
020: * "This product includes software developed by Jcorporate Ltd.
021: * (http://www.jcorporate.com/)."
022: * Alternately, this acknowledgment may appear in the software itself,
023: * if and wherever such third-party acknowledgments normally appear.
024: *
025: * 4. "Jcorporate" and product names such as "Expresso" must
026: * not be used to endorse or promote products derived from this
027: * software without prior written permission. For written permission,
028: * please contact info@jcorporate.com.
029: *
030: * 5. Products derived from this software may not be called "Expresso",
031: * or other Jcorporate product names; nor may "Expresso" or other
032: * Jcorporate product names appear in their name, without prior
033: * written permission of Jcorporate Ltd.
034: *
035: * 6. No product derived from this software may compete in the same
036: * market space, i.e. framework, without prior written permission
037: * of Jcorporate Ltd. For written permission, please contact
038: * partners@jcorporate.com.
039: *
040: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
041: * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
042: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
043: * DISCLAIMED. IN NO EVENT SHALL JCORPORATE LTD OR ITS CONTRIBUTORS
044: * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
045: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
046: * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
047: * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
048: * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
049: * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
050: * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
051: * SUCH DAMAGE.
052: * ====================================================================
053: *
054: * This software consists of voluntary contributions made by many
055: * individuals on behalf of the Jcorporate Ltd. Contributions back
056: * to the project(s) are encouraged when you make modifications.
057: * Please send them to support@jcorporate.com. For more information
058: * on Jcorporate Ltd. and its products, please see
059: * <http://www.jcorporate.com/>.
060: *
061: * Portions of this software are based upon other open source
062: * products and are subject to their respective licenses.
063: */
064:
065: package com.jcorporate.expresso.services.dbobj;
066:
067: /**
068: * Static object table that allows allocation and discarding the MimeTypes[]
069: * static string array.
070: *
071: * @author Michael Rimov
072: * @version $Revision: 1.5 $ on $Date: 2004/11/17 20:48:18 $
073: */
074:
075: public class DefaultMimetypes {
076: /**
077: * This is the list of mime types that are entered into the MimeType table
078: * by default. If you want all applications to automatically have this MIME
079: * type, simply add to the string array.
080: * <p/>
081: * Array fields:
082: * <ul>
083: * <li>Field 1 : The Browser MIME Type</li>
084: * <li> Field 2: A Friendly Description of the MIME Type. May be blank </li>
085: * <li>Field 3: The name of an icon that is used to represent the file type. If
086: * left blank, then Document.gif will be automatically used.</li>
087: * <li>Field 4: A space separated list of potential file endings (in lower case)
088: * so the framework can map the appropriate file names to the file type</li>
089: * </ul>
090: * This list is based upon various sources over the internet. But the registered
091: * types can be found at:
092: * ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/
093: */
094: public final String[][] mimeTypes = {
095: { "audio/aiff", "Audio File", "Speaker.gif", "aiff aif" },
096: { "audio/basic", "audio/basic", "Speaker.gif", "au snd" },
097: { "audio/mid", "MIDI File", "Music.gif", "mid midi" },
098: { "audio/mpeg3", "MP3 File", "Speaker.gif", "mp3" },
099: { "audio/mpeg", "MPEG Audio", "Speaker.gif",
100: "mpa abs mpega" },
101: { "audio/x-pn-realaudio", "Real Audio", "RealPlayer.gif",
102: "ra" },
103: { "audio/wav", "Windows WAV Audio File", "Speaker.gif",
104: "wav" },
105: { "application/x-shockwave-flash",
106: "Macromedia Flash Animation",
107: "MacromediaFlash.gif", "swf" },
108: { "application/mathematica", "Mathematica Notebook", "",
109: "nb" },
110: { "application/msword", "Microsoft Word Document",
111: "MSWord.gif", "doc dot" },
112: { "application/rtf", "Rich Text Format Document",
113: "RTF.gif", "rtf" },
114: { "application/octet-stream", "Unknown Binary File", "", "" },
115: { "application/pcx", "PCX Image", "Image.gif", "pcx" },
116: { "application/pdf", "PDF Files", "Acrobat.gif", "pdf" },
117: { "application/pgp-encrypted", "PGP Encrypted File", "",
118: "asc pgp" },
119: { "application/pgp-signature", "PGP Signature File", "", "" },
120: { "application/pgp-keys", "PGP Key", "", "" },
121: { "application/pkcs7-mime",
122: "PKCS-7 Mime Encrypted Document", "", "" },
123: { "application/pkcs7-signature", "PKCS-7 Signature", "", "" },
124: { "application/postscript", "Postscript Document",
125: "PS.gif", "ps" },
126: { "application/wordperfect", "Corel WordPerfect", "", "wp" },
127: { "application/x-javascript", "Javascript", "", "js" },
128: { "application/x-gtar", "gtar", "", "gtar" },
129: { "application/x-gzip", "GZip Compressed File", "", "gz" },
130: { "application/x-latex", "latex", "", "" },
131: { "application/x-msaccess", "MS Access Database",
132: "MSAccess.gif", "mdb" },
133: { "application/x-mspublisher", "Microsoft Publisher",
134: "MSPublisher.gif", "pub" },
135: { "application/x-shar", "SHAR file", "", "shar" },
136: { "application/x-tar", "UNIX Tape Archive", "", "tar" },
137: { "application/x-tex", "TEX File", "", "tex" },
138: { "application/x-troff", "UNIX NROFF Document", "",
139: "t tr roff nroff" },
140: { "application/x-troff-man", "UNIX Man Page", "", "man" },
141: { "application/x-vrml", "VRML Model", "", "vrml wrl" },
142: { "application/x-director", "Macromedia Director File", "",
143: "dcr dir dxr" },
144: { "application/vnd.framemaker", "Adobe Framemaker File",
145: "", "" },
146: { "application/vnd.lotus-1-2-3", "Lotus 1-2-3 Spreadsheet",
147: "", "" },
148: { "application/vnd.lotus-approach",
149: "Lotus Approach Document", "", "" },
150: { "application/vnd.lotus-freelance",
151: "Lotus Freelance Graphic", "", "" },
152: { "application/vnd.lotus-organizer",
153: "Lotus Organizer File", "", "" },
154: { "application/vnd.lotus-screencam",
155: "Lotus Screencam Video", "", "" },
156: { "application/vnd.lotus-wordpro",
157: "Lotus Wordpro Document", "", "" },
158: { "application/vnd.ms-artgalry",
159: "Microsoft Art Gallery Object", "", "cag" },
160: { "application/vnd.ms-excel", "Microsoft Excel Document",
161: "Excel.gif", "xls xlt xlm xld xla xlc xlw xll" },
162: { "application/vnd.ms-powerpoint",
163: "Microsoft Powerpoint Slideshow",
164: "MSPowerPoint.gif", "ppt" },
165: { "application/vnd.ms-project",
166: "Microsoft Project Document", "", "mpp mpt" },
167: { "application/vnd.ms-works", "Microsoft Works Document",
168: "", "wks" },
169: { "application/vnd.sun.xml.writer.template",
170: "StarOffice Write Document", "", "stw" },
171: { "application/vnd.sun.xml.calc", "StarOffice SpreadSheet",
172: "", "sxc" },
173: { "application/vnd.sun.xml.calc.template",
174: "StarOffice Calc Template", "", "stc" },
175: { "application/vnd.sun.xml.impress",
176: "StarOffice Impress Document", "", "sxi" },
177: { "application/vnd.sun.xml.impress.template",
178: "StarOffice Impress Template", "", "sti" },
179: { "application/vnd.sun.xml.writer.global",
180: "Star Office Write Document", "", "sxg" },
181: { "application/vnd.sun.xml.math", "Star Office Math Doc",
182: "", "sxm" },
183: { "application/mac-binhex40",
184: "Macintosh HQX Compressed File", "", "" },
185: { "application/unknown", "All other file types",
186: "Program.gif", "" },
187: { "application/wordperfect5.1", "Wordperfect 5.1 Document",
188: "", "" },
189: { "application/zip", "Zip Compressed Archive", "", "zip" },
190: { "image/gif", "GIF Image", "Image.gif", "gif" },
191: { "image/jpeg", "JPEG Image", "Image.gif", "jpg jpeg jpe" },
192: { "image/png", "PNG Image", "Image.gif", "png" },
193: { "image/tiff", "TIFF Image", "Image.gif", "tif tiff" },
194: { "image/x-icon", "Windows Icon", "Image.gif", "ico" },
195: { "image/x-xbitmap", "X Bitmap", "Image.gif", "xbm bmp" },
196: { "message/rfc822", "RFC 822 Formatted Email Message",
197: "envelop2.gif", "" },
198: { "text/x-csv", "Comma Separated Text", "", "csv" },
199: { "text/html", "HTML File", "HTML.gif", "htm html" },
200: { "text/plain", "Text File", "",
201: "txt asc java pl py c cpp h hpp" },
202: { "text/xml", "XML File", "", "xml" },
203: { "text/xml-external-parsed-entity",
204: "XML External Parsed Entity", "", "" },
205: { "text/xsl", "XSL Stylesheet", "", "xsl xslt" },
206: { "text/wml", "WML File", "PDA.gif", "wml" },
207: { "text/vnd.wap.wmlscript ", "WML Script", "PDA.gif", "" },
208: { "text/vnd.curl", "Curl Document", "", "" },
209: { "video/avi", "Microsoft AVI Video", "Movie.gif",
210: "avi vfw avx" },
211: { "video/fli", "AutoCAD Animation", "Movie.gif", "fli flc" },
212: { "video/mpeg", "MPEG Video", "Movie.gif", "mpeg mpg mpe" },
213: { "video/mpeg2", "MPEG2 Video", "Movie.gif", "" },
214: { "video/quicktime", "Apple Quicktime Video",
215: "QuickTime.gif", "mov qt" },
216: { "video/x-ms-asf", "Microsoft Netshow Video", "Movie.gif",
217: "asf" },
218: { "video/vnd.rn-realvideo", "Real Video", "RealPlayer.gif",
219: "rm" } };
220:
221: public DefaultMimetypes() {
222: }
223:
224: }
|