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 InputStream source)
Creates a JsonDocumentFormatRegistry from the given InputStream.
|
static JsonDocumentFormatRegistry |
create(@NonNull InputStream source,
@NonNull Map<String,DocumentFormatProperties> customProperties)
Creates a JsonDocumentFormatRegistry from the given InputStream.
|
static JsonDocumentFormatRegistry |
create(@NonNull String source)
Creates a JsonDocumentFormatRegistry from the given source.
|
static JsonDocumentFormatRegistry |
create(@NonNull String source,
@NonNull Map<String,DocumentFormatProperties> customProperties)
Creates a JsonDocumentFormatRegistry from the given source.
|
addFormat, getFormatByExtension, getFormatByMediaType, getOutputFormatsprotected JsonDocumentFormatRegistry()
public static JsonDocumentFormatRegistry create(@NonNull InputStream source) throws IOException
source - The InputStream (JSON format) containing the DocumentFormat collection.IOException - If an I/O error occurs.public static JsonDocumentFormatRegistry create(@NonNull InputStream source, @NonNull 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(@NonNull String source)
source - The string (JSON format) containing the DocumentFormat collection.public static JsonDocumentFormatRegistry create(@NonNull String source, @NonNull Map<String,DocumentFormatProperties> customProperties)
source - The string (JSON format) containing the DocumentFormat collection.customProperties - Custom properties applied when loading or storing documents.Copyright © 2016 - present; JODConverter.org. All rights reserved.