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.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * Copyright 2005 Jeremias Maerki
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.apache.fop.apps;
  17. /**
  18. * Frequently used MIME types for various file formats used when working with Apache FOP.
  19. */
  20. public interface MimeConstants {
  21. /** Portable Document Format */
  22. String MIME_PDF = "application/pdf";
  23. /** PostScript */
  24. String MIME_POSTSCRIPT = "application/postscript";
  25. /** Encapsulated PostScript (same MIME type as PostScript) */
  26. String MIME_EPS = MIME_POSTSCRIPT;
  27. /** HP's PCL */
  28. String MIME_PCL = "application/x-pcl";
  29. /** HP's PCL (alternative MIME type) */
  30. String MIME_PCL_ALT = "application/vnd.hp-PCL";
  31. /** Plain text */
  32. String MIME_PLAIN_TEXT = "text/plain";
  33. /** Rich text format */
  34. String MIME_RTF = "application/rtf";
  35. /** Rich text format (alternative 1) */
  36. String MIME_RTF_ALT1 = "text/richtext";
  37. /** Rich text format (alternative 2) */
  38. String MIME_RTF_ALT2 = "text/rtf";
  39. /** FrameMaker's MIF */
  40. String MIME_MIF = "application/mif";
  41. /** Structured Vector Graphics */
  42. String MIME_SVG = "image/svg+xml";
  43. /** PNG images */
  44. String MIME_PNG = "image/png";
  45. /** JPEG images */
  46. String MIME_JPEG = "image/jpeg";
  47. /** TIFF images */
  48. String MIME_TIFF = "image/tiff";
  49. /** Apache FOP's AWT preview (non-standard MIME type) */
  50. String MIME_FOP_AWT_PREVIEW = "application/X-fop-awt-preview";
  51. /** Apache FOP's Direct Printing (non-standard MIME type) */
  52. String MIME_FOP_PRINT = "application/X-fop-print";
  53. /** Apache FOP's area tree XML */
  54. String MIME_FOP_AREA_TREE = "application/X-fop-areatree";
  55. /** Proposed but non-registered MIME type for XSL-FO */
  56. String MIME_XSL_FO = "text/xsl";
  57. }