public final class DefaultDocumentFormatRegistry
extends java.lang.Object
DocumentFormat
registry. It contains the list of DocumentFormat
that should be enough to cover most of our needs.
See OpenOffice Filters Documentation
See LibreOffice Filters and OpenOffice Filters.
Modifier and Type | Field and Description |
---|---|
static DocumentFormat |
CSV
Comma Separated Values.
|
static DocumentFormat |
DOC
Microsoft Word 97-2003.
|
static DocumentFormat |
DOCX
Microsoft Word 2007-2013 XML.
|
static DocumentFormat |
HTML
HTML.
|
static DocumentFormat |
ODG
OpenDocument Drawing.
|
static DocumentFormat |
ODP
OpenDocument Presentation.
|
static DocumentFormat |
ODS
OpenDocument Spreadsheet.
|
static DocumentFormat |
ODT
OpenDocument Text.
|
static DocumentFormat |
OTG
OpenDocument Drawing Template.
|
static DocumentFormat |
OTP
OpenDocument Presentation Template.
|
static DocumentFormat |
OTS
OpenDocument Spreadsheet Template.
|
static DocumentFormat |
OTT
OpenDocument Text Template.
|
static DocumentFormat |
PDF
Portable Document Format.
|
static DocumentFormat |
PNG
Portable Network Graphics.
|
static DocumentFormat |
PPT
Microsoft PowerPoint 97-2003.
|
static DocumentFormat |
PPTX
Microsoft PowerPoint 2007-2013 XML.
|
static DocumentFormat |
RTF
Rich Text Format.
|
static DocumentFormat |
SVG
Scalable Vector Graphics.
|
static DocumentFormat |
SWF
Macromedia Flash.
|
static DocumentFormat |
SXC
OpenOffice.org 1.0 Spreadsheet.
|
static DocumentFormat |
SXI
OpenOffice.org 1.0 Presentation.
|
static DocumentFormat |
SXW
OpenOffice.org 1.0 Text Document.
|
static DocumentFormat |
TSV
Tab Separated Values.
|
static DocumentFormat |
TXT
Plain Text.
|
static DocumentFormat |
WPD
WordPerfect.
|
static DocumentFormat |
XLS
Microsoft Excel 97-2003.
|
static DocumentFormat |
XLSX
Microsoft Excel 2007-2013 XML.
|
Modifier and Type | Method and Description |
---|---|
static DocumentFormat |
getFormatByExtension(java.lang.String extension)
Gets a document format for the specified extension.
|
static DocumentFormat |
getFormatByMediaType(java.lang.String mediaType)
Gets a document format for the specified media type.
|
static DocumentFormatRegistry |
getInstance()
Gets the default instance of the class.
|
static java.util.Set<DocumentFormat> |
getOutputFormats(DocumentFamily family)
Gets all the
DocumentFormat s of a given family. |
public static final DocumentFormat PDF
public static final DocumentFormat SWF
public static final DocumentFormat HTML
public static final DocumentFormat ODT
public static final DocumentFormat OTT
public static final DocumentFormat SXW
public static final DocumentFormat DOC
public static final DocumentFormat DOCX
public static final DocumentFormat RTF
public static final DocumentFormat WPD
public static final DocumentFormat TXT
public static final DocumentFormat ODS
public static final DocumentFormat OTS
public static final DocumentFormat SXC
public static final DocumentFormat XLS
public static final DocumentFormat XLSX
public static final DocumentFormat CSV
public static final DocumentFormat TSV
public static final DocumentFormat ODP
public static final DocumentFormat OTP
public static final DocumentFormat SXI
public static final DocumentFormat PPT
public static final DocumentFormat PPTX
public static final DocumentFormat ODG
public static final DocumentFormat OTG
public static final DocumentFormat SVG
public static final DocumentFormat PNG
public static DocumentFormatRegistry getInstance()
public static DocumentFormat getFormatByExtension(java.lang.String extension)
extension
- The extension whose document format will be returned.null
if no document format exists for the
specified extension.public static DocumentFormat getFormatByMediaType(java.lang.String mediaType)
mediaType
- The media type whose document format will be returned.null
if no document format exists for the
specified media type.public static java.util.Set<DocumentFormat> getOutputFormats(DocumentFamily family)
DocumentFormat
s of a given family.family
- The family whose document formats will be returned.