public class JsonDocumentFormatRegistry extends SimpleDocumentFormatRegistry
DocumentFormat supported by office
that has been loaded loaded from a JSON source.| Modifier | Constructor and Description |
|---|---|
protected |
JsonDocumentFormatRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static JsonDocumentFormatRegistry |
create(InputStream source)
Creates a JsonDocumentFormatRegistry from the given InputStream.
|
static JsonDocumentFormatRegistry |
create(InputStream source,
Map<String,DocumentFormatProperties> customProperties)
Creates a JsonDocumentFormatRegistry from the given InputStream.
|
static JsonDocumentFormatRegistry |
create(String source)
Creates a JsonDocumentFormatRegistry from the given source.
|
static JsonDocumentFormatRegistry |
create(String source,
Map<String,DocumentFormatProperties> customProperties)
Creates a JsonDocumentFormatRegistry from the given source.
|
protected void |
readJsonArray(String source,
Map<String,DocumentFormatProperties> customProperties) |
addFormat, getFormatByExtension, getFormatByMediaType, getOutputFormatspublic static JsonDocumentFormatRegistry create(InputStream source) throws IOException
source - The InputStream (JSON format) containing the DocumentFormat collection.IOException - If an I/O error occurs.public static JsonDocumentFormatRegistry create(InputStream source, Map<String,DocumentFormatProperties> customProperties) throws IOException
source - The InputStream (JSON format) containing the DocumentFormat collection.customProperties - Custom properties applied when loading or storing documents.IOException - If an I/O error occurs.public static JsonDocumentFormatRegistry create(String source)
source - The string (JSON format) containing the DocumentFormat collection.public static JsonDocumentFormatRegistry create(String source, Map<String,DocumentFormatProperties> customProperties)
source - The string (JSON format) containing the DocumentFormat collection.customProperties - Custom properties applied when loading or storing documents.protected void readJsonArray(String source, Map<String,DocumentFormatProperties> customProperties)