public class DocumentFormat extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentFormat.Builder |
| Modifier and Type | Field and Description |
|---|---|
List<String> |
extensions |
FamilyType |
inputFamily |
Map<String,Object> |
loadProperties |
String |
mediaType |
String |
name |
Map<FamilyType,Map<String,Object>> |
storeProperties |
| Constructor and Description |
|---|
DocumentFormat() |
| Modifier and Type | Method and Description |
|---|---|
static DocumentFormat.Builder |
builder()
创建一个新的生成器实例.
|
static DocumentFormat |
copy(DocumentFormat sourceFormat)
从指定的格式创建一个新的可修改的
DocumentFormat. |
String |
getExtension()
获取与文档格式关联的扩展名。它将返回与
#getExtensions().get(0)相同的扩展名. |
List<String> |
getExtensions()
获取文档格式的文件名扩展名.
|
FamilyType |
getInputFamily()
获取文档格式的输入DocumentFamily.
|
Map<String,Object> |
getLoadProperties()
获取加载(打开)这种格式文档所需的属性.
|
String |
getMediaType()
获取格式的媒体(mime)类型.
|
String |
getName()
获取格式的名称.
|
Map<FamilyType,Map<String,Object>> |
getStoreProperties()
获取将这种格式的文档存储(保存)到受支持的集合文档所需的属性.
|
Map<String,Object> |
getStoreProperties(FamilyType family)
从指定集合的文档中获取将文档存储(保存)为这种格式所需的属性.
|
String |
toString() |
static DocumentFormat |
unmodifiableCopy(DocumentFormat sourceFormat)
从指定格式创建一个新的不可修改的
DocumentFormat. |
public String name
public String mediaType
public FamilyType inputFamily
public Map<FamilyType,Map<String,Object>> storeProperties
public static DocumentFormat.Builder builder()
public static DocumentFormat copy(DocumentFormat sourceFormat)
DocumentFormat.sourceFormat - 源文档格式.DocumentFormat,与默认的文档格式不同,它是可修改的.public static DocumentFormat unmodifiableCopy(DocumentFormat sourceFormat)
DocumentFormat.sourceFormat - 源文档格式.DocumentFormat,与默认的文档格式不同,它是可修改的.public String getExtension()
#getExtensions().get(0)相同的扩展名.public FamilyType getInputFamily()
public Map<String,Object> getLoadProperties()
public String getMediaType()
public String getName()
public Map<FamilyType,Map<String,Object>> getStoreProperties()
public Map<String,Object> getStoreProperties(FamilyType family)
family - 属性获取的DocumentFamily.Copyright © 2020. All rights reserved.