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(java.io.InputStream source)
Creates a JsonDocumentFormatRegistry from the given InputStream.
|
static JsonDocumentFormatRegistry |
create(java.lang.String source)
Creates a JsonDocumentFormatRegistry from the given source.
|
protected void |
readJsonArray(java.lang.String source) |
addFormat, getFormatByExtension, getFormatByMediaType, getOutputFormats
public static JsonDocumentFormatRegistry create(java.io.InputStream source) throws java.io.IOException
source
- The InputStream (JSON format) containing the DocumentFormat collection.java.io.IOException
- If an I/O error occurs.public static JsonDocumentFormatRegistry create(java.lang.String source)
source
- The string (JSON format) containing the DocumentFormat collection.protected void readJsonArray(java.lang.String source)