public final class DefaultFormatRegistry extends Object
DocumentFormat注册表。
应该足以满足我们的大部分需求.| Modifier and Type | Field and Description |
|---|---|
static DocumentFormat |
BMP
Windows Bitmap.
|
static DocumentFormat |
CSV
Comma Separated Values.
|
static DocumentFormat |
DOC
Microsoft Word 97-2003.
|
static DocumentFormat |
DOCX
Microsoft Word 2007-2013 XML.
|
static DocumentFormat |
FODG
OpenDocument Drawing Flat XML.
|
static DocumentFormat |
FODP
OpenDocument Presentation Flat XML.
|
static DocumentFormat |
FODS
OpenDocument Spreadsheet Flat XML.
|
static DocumentFormat |
FODT
OpenDocument Text Flat XML.
|
static DocumentFormat |
GIF
Graphic Interchange Format.
|
static DocumentFormat |
HTML
HTML.
|
static DocumentFormat |
JPEG
Joint Photographic Experts Group.
|
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 |
TIFF
Tagged Image File Format.
|
static DocumentFormat |
TSV
Tab Separated Values.
|
static DocumentFormat |
TXT
Plain Text.
|
static DocumentFormat |
VSD
Visio format.
|
static DocumentFormat |
VSDX
New Visio format.
|
static DocumentFormat |
WPD
WordPerfect.
|
static DocumentFormat |
XHTML
XHTML.
|
static DocumentFormat |
XLS
Microsoft Excel 97-2003.
|
static DocumentFormat |
XLSX
Microsoft Excel 2007-2013 XML.
|
| Constructor and Description |
|---|
DefaultFormatRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static DocumentFormat |
getFormatByExtension(String extension)
获取指定扩展名的文档格式.
|
static DocumentFormat |
getFormatByMediaType(String mediaType)
获取指定媒体类型的文档格式.
|
static FormatRegistry |
getInstance()
获取类的默认实例.
|
static Set<DocumentFormat> |
getOutputFormats(FamilyType family)
获取给定系列的所有
DocumentFormat. |
public static final DocumentFormat PDF
public static final DocumentFormat SWF
public static final DocumentFormat HTML
public static final DocumentFormat XHTML
public static final DocumentFormat ODT
public static final DocumentFormat OTT
public static final DocumentFormat FODT
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 FODS
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 FODP
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 FODG
public static final DocumentFormat SVG
public static final DocumentFormat VSD
public static final DocumentFormat VSDX
public static final DocumentFormat PNG
public static final DocumentFormat JPEG
public static final DocumentFormat TIFF
public static final DocumentFormat GIF
public static final DocumentFormat BMP
public static FormatRegistry getInstance()
public static DocumentFormat getFormatByExtension(String extension)
extension - 将返回其文档格式的扩展名.null.public static DocumentFormat getFormatByMediaType(String mediaType)
mediaType - 将返回其文档格式的媒体类型.null.public static Set<DocumentFormat> getOutputFormats(FamilyType family)
DocumentFormat.family - 将返回其文档格式的集合.Copyright © 2020. All rights reserved.