KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > fop > apps > MimeConstants


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 /* $Id: MimeConstants.java 426576 2006-07-28 15:44:37Z jeremias $ */
19
20 package org.apache.fop.apps;
21
22 /**
23  * Frequently used MIME types for various file formats used when working with Apache FOP.
24  */

25 public interface MimeConstants {
26
27     /** Portable Document Format */
28     String JavaDoc MIME_PDF = "application/pdf";
29     
30     /** PostScript */
31     String JavaDoc MIME_POSTSCRIPT = "application/postscript";
32     /** Encapsulated PostScript (same MIME type as PostScript) */
33     String JavaDoc MIME_EPS = MIME_POSTSCRIPT;
34     
35     /** HP's PCL */
36     String JavaDoc MIME_PCL = "application/x-pcl";
37     /** HP's PCL (alternative MIME type) */
38     String JavaDoc MIME_PCL_ALT = "application/vnd.hp-PCL";
39     
40     /** IBM's AFP */
41     String JavaDoc MIME_AFP = "application/x-afp";
42     /** IBM's AFP (alternative MIME type) */
43     String JavaDoc MIME_AFP_ALT = "application/vnd.ibm.modcap";
44     
45     /** Plain text */
46     String JavaDoc MIME_PLAIN_TEXT = "text/plain";
47     
48     /** Rich text format */
49     String JavaDoc MIME_RTF = "application/rtf";
50     /** Rich text format (alternative 1) */
51     String JavaDoc MIME_RTF_ALT1 = "text/richtext";
52     /** Rich text format (alternative 2) */
53     String JavaDoc MIME_RTF_ALT2 = "text/rtf";
54     
55     /** FrameMaker's MIF */
56     String JavaDoc MIME_MIF = "application/mif";
57     
58     /** Structured Vector Graphics */
59     String JavaDoc MIME_SVG = "image/svg+xml";
60     
61     /** GIF images */
62     String JavaDoc MIME_GIF = "image/gif";
63     /** PNG images */
64     String JavaDoc MIME_PNG = "image/png";
65     /** JPEG images */
66     String JavaDoc MIME_JPEG = "image/jpeg";
67     /** TIFF images */
68     String JavaDoc MIME_TIFF = "image/tiff";
69        
70     /** Apache FOP's AWT preview (non-standard MIME type) */
71     String JavaDoc MIME_FOP_AWT_PREVIEW = "application/X-fop-awt-preview";
72     /** Apache FOP's Direct Printing (non-standard MIME type) */
73     String JavaDoc MIME_FOP_PRINT = "application/X-fop-print";
74     /** Apache FOP's area tree XML */
75     String JavaDoc MIME_FOP_AREA_TREE = "application/X-fop-areatree";
76
77     /** Proposed but non-registered MIME type for XSL-FO */
78     String JavaDoc MIME_XSL_FO = "text/xsl";
79     
80 }
81
Popular Tags