public class JsonDocumentFormatRegistry extends SimpleDocumentFormatRegistry
DocumentFormat
supported by office
that has been loaded loaded from a JSON source.限定符 | 构造器和说明 |
---|---|
protected |
JsonDocumentFormatRegistry() |
限定符和类型 | 方法和说明 |
---|---|
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)