| 1 | /* |
|---|
| 2 | * Copyright 2007-2008, Plutext Pty Ltd. |
|---|
| 3 | * |
|---|
| 4 | * This file is part of docx4j. |
|---|
| 5 | |
|---|
| 6 | docx4j is licensed under the Apache License, Version 2.0 (the "License"); |
|---|
| 7 | you may not use this file except in compliance with the License. |
|---|
| 8 | |
|---|
| 9 | You may obtain a copy of the License at |
|---|
| 10 | |
|---|
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 12 | |
|---|
| 13 | Unless required by applicable law or agreed to in writing, software |
|---|
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
|---|
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|---|
| 16 | See the License for the specific language governing permissions and |
|---|
| 17 | limitations under the License. |
|---|
| 18 | |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | /* |
|---|
| 22 | * Portions Copyright (c) 2006, Wygwam |
|---|
| 23 | * With respect to those portions: |
|---|
| 24 | * |
|---|
| 25 | * All rights reserved. |
|---|
| 26 | * |
|---|
| 27 | * Redistribution and use in source and binary forms, with or without modification, |
|---|
| 28 | * are permitted provided that the following conditions are met: |
|---|
| 29 | * |
|---|
| 30 | * - Redistributions of source code must retain the above copyright notice, |
|---|
| 31 | * this list of conditions and the following disclaimer. |
|---|
| 32 | * - Redistributions in binary form must reproduce the above copyright notice, |
|---|
| 33 | * this list of conditions and the following disclaimer in the documentation and/or |
|---|
| 34 | * other materials provided with the distribution. |
|---|
| 35 | * - Neither the name of Wygwam nor the names of its contributors may be |
|---|
| 36 | * used to endorse or promote products derived from this software without |
|---|
| 37 | * specific prior written permission. |
|---|
| 38 | * |
|---|
| 39 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY |
|---|
| 40 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
|---|
| 41 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|---|
| 42 | * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
|---|
| 43 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
|---|
| 44 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
|---|
| 45 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
|---|
| 46 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
|---|
| 47 | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|---|
| 48 | */ |
|---|
| 49 | |
|---|
| 50 | package org.docx4j.openpackaging.contenttype; |
|---|
| 51 | |
|---|
| 52 | /** |
|---|
| 53 | * Content types. |
|---|
| 54 | * |
|---|
| 55 | * @author CDubettier define some constants, Julien Chable |
|---|
| 56 | * @version 0.1 |
|---|
| 57 | */ |
|---|
| 58 | public class ContentTypes { |
|---|
| 59 | |
|---|
| 60 | ///////////////////////////////////////////////////////////////////////////// |
|---|
| 61 | // CONTENT TYPES |
|---|
| 62 | //////////////////////////////////////////////////////////////////////////// |
|---|
| 63 | |
|---|
| 64 | /** |
|---|
| 65 | * Relationships part - CRITICAL! |
|---|
| 66 | */ |
|---|
| 67 | public static final String RELATIONSHIPS_PART = "application/vnd.openxmlformats-package.relationships+xml"; |
|---|
| 68 | |
|---|
| 69 | |
|---|
| 70 | // <Default ContentType="application/xml" Extension="xml"/> |
|---|
| 71 | public final static String APPLICATION_XML = "application/xml"; |
|---|
| 72 | |
|---|
| 73 | // PartName="/docProps/core.xml" |
|---|
| 74 | public final static String PACKAGE_COREPROPERTIES = |
|---|
| 75 | "application/vnd.openxmlformats-package.core-properties+xml"; |
|---|
| 76 | // PartName="/docProps/custom.xml" |
|---|
| 77 | public final static String OFFICEDOCUMENT_CUSTOMPROPERTIES = |
|---|
| 78 | "application/vnd.openxmlformats-officedocument.custom-properties+xml"; |
|---|
| 79 | // PartName="/docProps/app.xml" |
|---|
| 80 | public final static String OFFICEDOCUMENT_EXTENDEDPROPERTIES = |
|---|
| 81 | "application/vnd.openxmlformats-officedocument.extended-properties+xml"; |
|---|
| 82 | |
|---|
| 83 | // PartName="/customXml/itemProps1.xml" |
|---|
| 84 | public final static String OFFICEDOCUMENT_CUSTOMXML_DATASTORAGEPROPERTIES = |
|---|
| 85 | "application/vnd.openxmlformats-officedocument.customXmlProperties+xml"; |
|---|
| 86 | public final static String OFFICEDOCUMENT_CUSTOMXML_DATASTORAGE = |
|---|
| 87 | "application/xml"; |
|---|
| 88 | |
|---|
| 89 | public final static String OFFICEDOCUMENT_THEME = |
|---|
| 90 | "application/vnd.openxmlformats-officedocument.theme+xml"; |
|---|
| 91 | |
|---|
| 92 | public final static String OFFICEDOCUMENT_FONT = |
|---|
| 93 | "application/vnd.openxmlformats-officedocument.obfuscatedFont"; |
|---|
| 94 | |
|---|
| 95 | public final static String OFFICEDOCUMENT_VBA_PROJECT = |
|---|
| 96 | "application/vnd.ms-office.vbaProject"; |
|---|
| 97 | |
|---|
| 98 | public final static String OFFICEDOCUMENT_VBA_DATA = |
|---|
| 99 | "application/vnd.ms-word.vbaData+xml"; |
|---|
| 100 | |
|---|
| 101 | public final static String OFFICEDOCUMENT_OLE_OBJECT = |
|---|
| 102 | "application/vnd.openxmlformats-officedocument.oleObject"; |
|---|
| 103 | |
|---|
| 104 | public final static String OFFICEDOCUMENT_ACTIVEX_OBJECT = |
|---|
| 105 | "application/vnd.ms-office.activeX"; |
|---|
| 106 | |
|---|
| 107 | public final static String OFFICEDOCUMENT_ACTIVEX_XML_OBJECT = |
|---|
| 108 | "application/vnd.ms-office.activeX+xml"; |
|---|
| 109 | |
|---|
| 110 | |
|---|
| 111 | // PartName="/word/document.xml" |
|---|
| 112 | public final static String WORDPROCESSINGML_DOCUMENT = "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"; |
|---|
| 113 | public final static String WORDPROCESSINGML_DOCUMENT_MACROENABLED = "application/vnd.ms-word.document.macroEnabled.main+xml"; |
|---|
| 114 | public final static String WORDPROCESSINGML_TEMPLATE = "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml"; |
|---|
| 115 | public final static String WORDPROCESSINGML_TEMPLATE_MACROENABLED = "application/vnd.ms-word.template.macroEnabledTemplate.main+xml"; |
|---|
| 116 | |
|---|
| 117 | |
|---|
| 118 | // PartName="/word/comments.xml" |
|---|
| 119 | public final static String WORDPROCESSINGML_COMMENTS = "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml"; |
|---|
| 120 | |
|---|
| 121 | // PartName="/word/endnotes.xml" |
|---|
| 122 | public final static String WORDPROCESSINGML_ENDNOTES = "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml"; |
|---|
| 123 | // PartName="/word/fontTable.xml" |
|---|
| 124 | public final static String WORDPROCESSINGML_FONTTABLE = |
|---|
| 125 | "application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"; |
|---|
| 126 | |
|---|
| 127 | // PartName="/word/footer[N].xml" |
|---|
| 128 | public final static String WORDPROCESSINGML_FOOTER ="application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml"; |
|---|
| 129 | |
|---|
| 130 | // PartName="/word/footnotes.xml" |
|---|
| 131 | public final static String WORDPROCESSINGML_FOOTNOTES ="application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml"; |
|---|
| 132 | |
|---|
| 133 | // PartName="/word/glossary/document.xml" |
|---|
| 134 | public final static String WORDPROCESSINGML_GLOSSARYDOCUMENT ="application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml"; |
|---|
| 135 | |
|---|
| 136 | // PartName="/word/header[N].xml" |
|---|
| 137 | public final static String WORDPROCESSINGML_HEADER ="application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml"; |
|---|
| 138 | |
|---|
| 139 | // PartName="/word/numbering.xml" |
|---|
| 140 | public final static String WORDPROCESSINGML_NUMBERING ="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"; |
|---|
| 141 | |
|---|
| 142 | public final static String WORDPROCESSINGML_SETTINGS = |
|---|
| 143 | "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"; |
|---|
| 144 | public final static String WORDPROCESSINGML_STYLES = |
|---|
| 145 | "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"; |
|---|
| 146 | public final static String WORDPROCESSINGML_WEBSETTINGS = |
|---|
| 147 | "application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"; |
|---|
| 148 | |
|---|
| 149 | // "/word/diagrams/data1.xml" |
|---|
| 150 | public final static String DRAWINGML_DIAGRAM_DATA = |
|---|
| 151 | "application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml"; |
|---|
| 152 | |
|---|
| 153 | // "/word/diagrams/layout1.xml" |
|---|
| 154 | public final static String DRAWINGML_DIAGRAM_LAYOUT = |
|---|
| 155 | "application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml"; |
|---|
| 156 | |
|---|
| 157 | // "/word/diagrams/colors1.xml" |
|---|
| 158 | public final static String DRAWINGML_DIAGRAM_COLORS = |
|---|
| 159 | "application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml"; |
|---|
| 160 | |
|---|
| 161 | // "/word/diagrams/quickStyle1.xml" |
|---|
| 162 | public final static String DRAWINGML_DIAGRAM_STYLE = |
|---|
| 163 | "application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml"; |
|---|
| 164 | |
|---|
| 165 | // "/word/diagrams/layout1.xml" |
|---|
| 166 | public final static String DRAWINGML_DIAGRAM_LAYOUT_HEADER = |
|---|
| 167 | "application/vnd.openxmlformats-officedocument.drawingml.diagramLayoutHeader+xml"; |
|---|
| 168 | |
|---|
| 169 | // "/word/diagrams/drawing1.xml" |
|---|
| 170 | public final static String DRAWINGML_DIAGRAM_DRAWING = |
|---|
| 171 | "application/vnd.ms-office.drawingml.diagramDrawing+xml"; |
|---|
| 172 | |
|---|
| 173 | // embedded presentation |
|---|
| 174 | public final static String PRESENTATION = |
|---|
| 175 | "application/vnd.openxmlformats-officedocument.presentationml.presentation"; |
|---|
| 176 | |
|---|
| 177 | // /ppt/presentation.xml |
|---|
| 178 | public final static String PRESENTATIONML_MAIN = |
|---|
| 179 | "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml"; |
|---|
| 180 | // .potx | |
|---|
| 181 | public final static String PRESENTATIONML_TEMPLATE = |
|---|
| 182 | "application/vnd.openxmlformats-officedocument.presentationml.template.main+xml"; |
|---|
| 183 | // .ppsx | |
|---|
| 184 | public final static String PRESENTATIONML_SLIDESHOW = |
|---|
| 185 | "application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml"; |
|---|
| 186 | |
|---|
| 187 | // /ppt/slides/slide1.xml" |
|---|
| 188 | public final static String PRESENTATIONML_SLIDE = |
|---|
| 189 | "application/vnd.openxmlformats-officedocument.presentationml.slide+xml"; |
|---|
| 190 | |
|---|
| 191 | // /ppt/slideMasters/slideMaster1.xml |
|---|
| 192 | public final static String PRESENTATIONML_SLIDE_MASTER = |
|---|
| 193 | "application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"; |
|---|
| 194 | |
|---|
| 195 | // /ppt/slideLayouts/slideLayout11.xml |
|---|
| 196 | public final static String PRESENTATIONML_SLIDE_LAYOUT = |
|---|
| 197 | "application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"; |
|---|
| 198 | |
|---|
| 199 | // /ppt/tableStyles.xml |
|---|
| 200 | public final static String PRESENTATIONML_TABLE_STYLES = |
|---|
| 201 | "application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"; |
|---|
| 202 | |
|---|
| 203 | // /ppt/presProps.xml |
|---|
| 204 | public final static String PRESENTATIONML_PRES_PROPS = |
|---|
| 205 | "application/vnd.openxmlformats-officedocument.presentationml.presProps+xml"; |
|---|
| 206 | |
|---|
| 207 | // /ppt/viewProps.xml |
|---|
| 208 | public final static String PRESENTATIONML_VIEW_PROPS = |
|---|
| 209 | "application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml"; |
|---|
| 210 | |
|---|
| 211 | // /ppt/tags/tag19.xml |
|---|
| 212 | public final static String PRESENTATIONML_TAGS = |
|---|
| 213 | "application/vnd.openxmlformats-officedocument.presentationml.tags+xml"; |
|---|
| 214 | |
|---|
| 215 | // "/ppt/notesSlides/notesSlide1.xml" |
|---|
| 216 | // p:notes |
|---|
| 217 | public final static String PRESENTATIONML_NOTES_SLIDE = |
|---|
| 218 | "application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml"; |
|---|
| 219 | |
|---|
| 220 | // "/ppt/notesMasters/notesMaster1.xml" |
|---|
| 221 | // p:notesMaster |
|---|
| 222 | public final static String PRESENTATIONML_NOTES_MASTER = |
|---|
| 223 | "application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml"; |
|---|
| 224 | |
|---|
| 225 | // /ppt/handoutMasters/handoutMaster1.xml" |
|---|
| 226 | // p:handoutMaster |
|---|
| 227 | public final static String PRESENTATIONML_HANDOUT_MASTER = |
|---|
| 228 | "application/vnd.openxmlformats-officedocument.presentationml.handoutMaster+xml"; |
|---|
| 229 | |
|---|
| 230 | public final static String SPREADSHEETML_WORKBOOK_MACROENABLED = |
|---|
| 231 | "application/vnd.ms-excel.sheet.macroEnabled.main+xml"; |
|---|
| 232 | |
|---|
| 233 | public final static String SPREADSHEETML_TEMPLATE_MACROENABLED = |
|---|
| 234 | "application/vnd.ms-excel.template.macroEnabled.main+xml"; |
|---|
| 235 | |
|---|
| 236 | public final static String SPREADSHEETML_TEMPLATE = |
|---|
| 237 | "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml";; |
|---|
| 238 | |
|---|
| 239 | // PartName="/xl/workbook.xml" |
|---|
| 240 | public final static String SPREADSHEETML_WORKBOOK = |
|---|
| 241 | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"; |
|---|
| 242 | |
|---|
| 243 | public final static String SPREADSHEETML_PRINTER_SETTINGS = |
|---|
| 244 | "application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings"; |
|---|
| 245 | |
|---|
| 246 | // PartName="/xl/styles.xml" |
|---|
| 247 | public final static String SPREADSHEETML_STYLES = |
|---|
| 248 | "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"; |
|---|
| 249 | |
|---|
| 250 | // PartName="/xl/worksheets/sheet1.xml" |
|---|
| 251 | public final static String SPREADSHEETML_WORKSHEET = |
|---|
| 252 | "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"; |
|---|
| 253 | |
|---|
| 254 | // PartName="/xl/calcChain.xml" |
|---|
| 255 | public final static String SPREADSHEETML_CALC_CHAIN = |
|---|
| 256 | "application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml"; |
|---|
| 257 | |
|---|
| 258 | // PartName="/xl/sharedStrings.xml" |
|---|
| 259 | public final static String SPREADSHEETML_SHARED_STRINGS = |
|---|
| 260 | "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"; |
|---|
| 261 | |
|---|
| 262 | // /xl/pivotCache/pivotCacheDefinition1.xml |
|---|
| 263 | public final static String SPREADSHEETML_PIVOT_CACHE_DEFINITION = |
|---|
| 264 | "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml"; |
|---|
| 265 | |
|---|
| 266 | // /xl/pivotCache/pivotCacheRecords1.xml |
|---|
| 267 | public final static String SPREADSHEETML_PIVOT_CACHE_RECORDS = |
|---|
| 268 | "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml"; |
|---|
| 269 | |
|---|
| 270 | // /xl/pivotTables/pivotTable1.xml |
|---|
| 271 | public final static String SPREADSHEETML_PIVOT_TABLE = |
|---|
| 272 | "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml"; |
|---|
| 273 | |
|---|
| 274 | // /xl/queryTables/queryTable1.xml |
|---|
| 275 | public final static String SPREADSHEETML_QUERY_TABLE = |
|---|
| 276 | "application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml"; |
|---|
| 277 | |
|---|
| 278 | // /xl/tables/table1.xml |
|---|
| 279 | public final static String SPREADSHEETML_TABLE = |
|---|
| 280 | "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"; |
|---|
| 281 | |
|---|
| 282 | // /xl/comments1.xml |
|---|
| 283 | public final static String SPREADSHEETML_COMMENTS = |
|---|
| 284 | "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"; |
|---|
| 285 | |
|---|
| 286 | // /xl/connections.xml |
|---|
| 287 | public final static String SPREADSHEETML_CONNECTIONS = |
|---|
| 288 | "application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml"; |
|---|
| 289 | |
|---|
| 290 | // /xl/charts/chart1.xml |
|---|
| 291 | public final static String DRAWINGML_CHART = |
|---|
| 292 | "application/vnd.openxmlformats-officedocument.drawingml.chart+xml"; |
|---|
| 293 | |
|---|
| 294 | // /xl/drawings/drawing1.xml |
|---|
| 295 | public final static String DRAWINGML_DRAWING = |
|---|
| 296 | "application/vnd.openxmlformats-officedocument.drawing+xml"; |
|---|
| 297 | |
|---|
| 298 | public final static String VML_DRAWING = |
|---|
| 299 | "application/vnd.openxmlformats-officedocument.vmlDrawing"; |
|---|
| 300 | |
|---|
| 301 | |
|---|
| 302 | /* |
|---|
| 303 | * Open Packaging Convention (Annex F : Standard Namespaces and Content |
|---|
| 304 | * Types) |
|---|
| 305 | * |
|---|
| 306 | * TODO - make the names consistent with above! |
|---|
| 307 | */ |
|---|
| 308 | |
|---|
| 309 | // |
|---|
| 310 | // /** |
|---|
| 311 | // * Digital Signature Certificate part. |
|---|
| 312 | // */ |
|---|
| 313 | // public static final String DIGITAL_SIGNATURE_CERTIFICATE_PART = "application/vnd.openxmlformats-package.digital-signature-certificate"; |
|---|
| 314 | // |
|---|
| 315 | // /** |
|---|
| 316 | // * Digital Signature Origin part. |
|---|
| 317 | // */ |
|---|
| 318 | // public static final String DIGITAL_SIGNATURE_ORIGIN_PART = "application/vnd.openxmlformats-package.digital-signature-origin"; |
|---|
| 319 | // |
|---|
| 320 | /** |
|---|
| 321 | * Digital Signature XML Signature part. |
|---|
| 322 | */ |
|---|
| 323 | public static final String DIGITAL_SIGNATURE_XML_SIGNATURE_PART = "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml"; |
|---|
| 324 | |
|---|
| 325 | |
|---|
| 326 | // Images format supported by WordprocessingML. See tc45-2006-334.pdf p.146 |
|---|
| 327 | |
|---|
| 328 | public static final String IMAGE_EMF = "image/x-emf"; |
|---|
| 329 | public static final String IMAGE_EMF2 = "image/emf"; // as per org.apache.xmlgraphics.image.loader.ImageInfo |
|---|
| 330 | public static final String EXTENSION_EMF = "emf"; |
|---|
| 331 | |
|---|
| 332 | public static final String IMAGE_WMF = "image/x-wmf"; |
|---|
| 333 | public static final String EXTENSION_WMF = "wmf"; |
|---|
| 334 | |
|---|
| 335 | |
|---|
| 336 | // image/gif http://www.w3.org/Graphics/GIF/spec-gif89a.txt |
|---|
| 337 | public static final String IMAGE_GIF = "image/gif"; |
|---|
| 338 | public static final String EXTENSION_GIF = "gif"; |
|---|
| 339 | |
|---|
| 340 | public static final String IMAGE_JPEG = "image/jpeg"; |
|---|
| 341 | public static final String EXTENSION_JPG_1 = "jpg"; |
|---|
| 342 | public static final String EXTENSION_JPG_2 = "jpeg"; |
|---|
| 343 | |
|---|
| 344 | /** |
|---|
| 345 | * Pict image format. |
|---|
| 346 | * |
|---|
| 347 | * @see http://developer.apple.com/documentation/mac/QuickDraw/QuickDraw-2.html |
|---|
| 348 | */ |
|---|
| 349 | public static final String IMAGE_PICT = "image/pict"; |
|---|
| 350 | public static final String EXTENSION_PICT = "tiff"; // ????????? |
|---|
| 351 | |
|---|
| 352 | // image/png ISO/IEC 15948:2003 http://www.libpng.org/pub/png/spec/ |
|---|
| 353 | public static final String IMAGE_PNG = "image/png"; |
|---|
| 354 | public static final String EXTENSION_PNG = "png"; |
|---|
| 355 | |
|---|
| 356 | |
|---|
| 357 | /** |
|---|
| 358 | * TIFF image format. |
|---|
| 359 | * |
|---|
| 360 | * @see http://partners.adobe.com/public/developer/tiff/index.html#spec |
|---|
| 361 | */ |
|---|
| 362 | public static final String IMAGE_TIFF = "image/tiff"; |
|---|
| 363 | public static final String EXTENSION_TIFF = "tiff"; |
|---|
| 364 | |
|---|
| 365 | public static final String IMAGE_EPS = "application/postscript"; // as reported by XmlGraphics |
|---|
| 366 | public static final String EXTENSION_EPS = "eps"; |
|---|
| 367 | |
|---|
| 368 | public static final String IMAGE_BMP = "image/bmp"; |
|---|
| 369 | public static final String EXTENSION_BMP = "bmp"; |
|---|
| 370 | |
|---|
| 371 | |
|---|
| 372 | public static final String XML = "text/xml"; |
|---|
| 373 | |
|---|
| 374 | |
|---|
| 375 | } |
|---|