You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MimeConstants.java 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. /* $Id$ */
  18. package org.apache.fop.apps;
  19. /**
  20. * Frequently used MIME types for various file formats used when working with Apache FOP.
  21. */
  22. public interface MimeConstants {
  23. /** Portable Document Format */
  24. String MIME_PDF = "application/pdf";
  25. /** PostScript */
  26. String MIME_POSTSCRIPT = "application/postscript";
  27. /** Encapsulated PostScript (same MIME type as PostScript) */
  28. String MIME_EPS = MIME_POSTSCRIPT;
  29. /** HP's PCL */
  30. String MIME_PCL = "application/x-pcl";
  31. /** HP's PCL (alternative MIME type) */
  32. String MIME_PCL_ALT = "application/vnd.hp-PCL";
  33. /** IBM's AFP */
  34. String MIME_AFP = "application/x-afp";
  35. /** IBM's AFP (alternative MIME type) */
  36. String MIME_AFP_ALT = "application/vnd.ibm.modcap";
  37. /** Plain text */
  38. String MIME_PLAIN_TEXT = "text/plain";
  39. /** Rich text format */
  40. String MIME_RTF = "application/rtf";
  41. /** Rich text format (alternative 1) */
  42. String MIME_RTF_ALT1 = "text/richtext";
  43. /** Rich text format (alternative 2) */
  44. String MIME_RTF_ALT2 = "text/rtf";
  45. /** FrameMaker's MIF */
  46. String MIME_MIF = "application/mif";
  47. /** Structured Vector Graphics */
  48. String MIME_SVG = "image/svg+xml";
  49. /** GIF images */
  50. String MIME_GIF = "image/gif";
  51. /** PNG images */
  52. String MIME_PNG = "image/png";
  53. /** JPEG images */
  54. String MIME_JPEG = "image/jpeg";
  55. /** TIFF images */
  56. String MIME_TIFF = "image/tiff";
  57. /** Apache FOP's AWT preview (non-standard MIME type) */
  58. String MIME_FOP_AWT_PREVIEW = "application/X-fop-awt-preview";
  59. /** Apache FOP's Direct Printing (non-standard MIME type) */
  60. String MIME_FOP_PRINT = "application/X-fop-print";
  61. /** Apache FOP's area tree XML */
  62. String MIME_FOP_AREA_TREE = "application/X-fop-areatree";
  63. /** Proposed but non-registered MIME type for XSL-FO */
  64. String MIME_XSL_FO = "text/xsl";
  65. }