public interface FormatRegistry
| Modifier and Type | Method and Description |
|---|---|
DocumentFormat |
getFormatByExtension(String extension)
获取指定扩展名的文档格式.
|
DocumentFormat |
getFormatByMediaType(String mediaType)
获取指定媒体类型的文档格式.
|
Set<DocumentFormat> |
getOutputFormats(FamilyType family) |
DocumentFormat getFormatByExtension(String extension)
extension - 将返回其文档格式的扩展名.null.DocumentFormat getFormatByMediaType(String mediaType)
mediaType - 将返回其文档格式的媒体类型.null.Set<DocumentFormat> getOutputFormats(FamilyType family)
family - 将返回其文档格式的集合.Copyright © 2020. All rights reserved.