public class JsonDocumentFormatRegistry extends SimpleDocumentFormatRegistry
DocumentFormat supported by office
that has been loaded from a JSON source.| Modifier | Constructor and Description |
|---|---|
protected |
JsonDocumentFormatRegistry()
Creates a new instance of the class.
|
| Modifier and Type | Method and Description |
|---|---|
static JsonDocumentFormatRegistry |
create(@NonNull java.io.InputStream source)
Creates a JsonDocumentFormatRegistry from the given InputStream.
|
static JsonDocumentFormatRegistry |
create(@NonNull java.io.InputStream source,
@NonNull java.util.Map<java.lang.String,DocumentFormatProperties> customProperties)
Creates a JsonDocumentFormatRegistry from the given InputStream.
|
static JsonDocumentFormatRegistry |
create(@NonNull java.lang.String source)
Creates a JsonDocumentFormatRegistry from the given source.
|
static JsonDocumentFormatRegistry |
create(@NonNull java.lang.String source,
@NonNull java.util.Map<java.lang.String,DocumentFormatProperties> customProperties)
Creates a JsonDocumentFormatRegistry from the given source.
|
addFormat, addRegistry, getFormatByExtension, getFormatByMediaType, getOutputFormatsprotected JsonDocumentFormatRegistry()
public static JsonDocumentFormatRegistry create(@NonNull 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(@NonNull java.io.InputStream source, @NonNull java.util.Map<java.lang.String,DocumentFormatProperties> customProperties) throws java.io.IOException
source - The InputStream (JSON format) containing the DocumentFormat collection.customProperties - Custom properties applied when loading or storing documents.java.io.IOException - If an I/O error occurs.public static JsonDocumentFormatRegistry create(@NonNull java.lang.String source)
source - The string (JSON format) containing the DocumentFormat collection.public static JsonDocumentFormatRegistry create(@NonNull java.lang.String source, @NonNull java.util.Map<java.lang.String,DocumentFormatProperties> customProperties)
source - The string (JSON format) containing the DocumentFormat collection.customProperties - Custom properties applied when loading or storing documents.Copyright © 2022 - present; JODConverter. All rights reserved.