public class JsonFormatRegistry extends SimpleFormatRegistry
DocumentFormat集合,该集合已从JSON源加载.| Modifier | Constructor and Description |
|---|---|
protected |
JsonFormatRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static JsonFormatRegistry |
create(InputStream source)
从给定的InputStream创建
JsonFormatRegistry |
static JsonFormatRegistry |
create(InputStream source,
Map<String,FormatProperties> customProperties)
从给定的InputStream创建
JsonFormatRegistry |
static JsonFormatRegistry |
create(String source)
从给定源创建
JsonFormatRegistry |
static JsonFormatRegistry |
create(String source,
Map<String,FormatProperties> customProperties)
从给定源创建
JsonFormatRegistry |
protected void |
readJsonArray(String source,
Map<String,FormatProperties> customProperties)
读取相关配置信息.
|
addFormat, getFormatByExtension, getFormatByMediaType, getOutputFormatspublic static JsonFormatRegistry create(String source)
JsonFormatRegistrysource - 包含 DocumentFormat 集合的字符串(JSON格式).JsonFormatRegistrypublic static JsonFormatRegistry create(InputStream source) throws IOException
JsonFormatRegistrysource - 包含 DocumentFormat 集合的InputStream (JSON格式).JsonFormatRegistryIOException - 如果发生I/O错误.public static JsonFormatRegistry create(InputStream source, Map<String,FormatProperties> customProperties) throws IOException
JsonFormatRegistrysource - 包含 DocumentFormat 集合的InputStream (JSON格式).customProperties - 加载或存储文档时应用的自定义属性.JsonFormatRegistryIOException - 如果发生I/O错误.public static JsonFormatRegistry create(String source, Map<String,FormatProperties> customProperties)
JsonFormatRegistrysource - 包含 DocumentFormat 集合的InputStream (JSON格式).customProperties - 加载或存储文档时应用的自定义属性.JsonFormatRegistryprotected void readJsonArray(String source, Map<String,FormatProperties> customProperties)
source - 包含 DocumentFormat 集合的InputStream (JSON格式).customProperties - 加载或存储文档时应用的自定义属性.Copyright © 2019. All rights reserved.