@ParametersAreNonnullByDefault public final class DublinCoreJsonFormat extends Object
Known limitations: Encoding schemas can currently only be from the
DublinCore.TERMS_NS_URI namespace using the DublinCore.TERMS_NS_PREFIX
since the JSON format does not serialize namespace bindings. Example: dcterms:W3CDTF
| Modifier and Type | Method and Description |
|---|---|
static DublinCoreCatalog |
read(InputStream json)
Read a JSON encoded catalog from a stream.
|
static DublinCoreCatalog |
read(org.json.simple.JSONObject json)
Reads values from a JSON object into a new DublinCore catalog.
|
static DublinCoreCatalog |
read(String json)
Read a JSON encoded catalog from a string.
|
static org.json.simple.JSONObject |
writeJsonObject(DublinCoreCatalog dc)
Converts the catalog to JSON object.
|
@Nonnull public static DublinCoreCatalog read(InputStream json) throws IOException, org.json.simple.parser.ParseException
IOExceptionorg.json.simple.parser.ParseException@Nonnull public static DublinCoreCatalog read(String json) throws IOException, org.json.simple.parser.ParseException
IOExceptionorg.json.simple.parser.ParseException@Nonnull public static DublinCoreCatalog read(org.json.simple.JSONObject json)
@Nonnull public static org.json.simple.JSONObject writeJsonObject(DublinCoreCatalog dc)
Copyright © 2009–2019 Opencast Project. All rights reserved.