@ProviderType public abstract class JsonProvider extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
abstract javax.json.JsonArrayBuilder |
createArrayBuilder() |
javax.json.JsonArrayBuilder |
createArrayBuilder(java.util.Collection<?> initialData) |
javax.json.JsonArrayBuilder |
createArrayBuilder(javax.json.JsonArray initialData) |
abstract javax.json.JsonBuilderFactory |
createBuilderFactory(java.util.Map<java.lang.String,?> config) |
javax.json.JsonPatch |
createDiff(javax.json.JsonStructure source,
javax.json.JsonStructure target)
Create a
JsonPatch by comparing the source to the target as defined in
RFC-6902. |
abstract javax.json.stream.JsonGenerator |
createGenerator(java.io.OutputStream out) |
abstract javax.json.stream.JsonGenerator |
createGenerator(java.io.Writer writer) |
abstract javax.json.stream.JsonGeneratorFactory |
createGeneratorFactory(java.util.Map<java.lang.String,?> config) |
javax.json.JsonMergePatch |
createMergeDiff(javax.json.JsonValue source,
javax.json.JsonValue target)
Create a merge patch by comparing the source to the target.
|
javax.json.JsonMergePatch |
createMergePatch(javax.json.JsonValue patch)
Create a merge patch based on the given JsonValue.
|
abstract javax.json.JsonObjectBuilder |
createObjectBuilder()
Create an empty JsonObjectBuilder
|
javax.json.JsonObjectBuilder |
createObjectBuilder(javax.json.JsonObject jsonObject)
Creates a JSON object builder, initialized with the specified JsonObject.
|
javax.json.JsonObjectBuilder |
createObjectBuilder(java.util.Map<java.lang.String,java.lang.Object> map)
Creates a JSON object builder, initialized with the specified Map.
|
abstract javax.json.stream.JsonParser |
createParser(java.io.InputStream in) |
abstract javax.json.stream.JsonParser |
createParser(java.io.Reader reader) |
abstract javax.json.stream.JsonParserFactory |
createParserFactory(java.util.Map<java.lang.String,?> config) |
javax.json.JsonPatch |
createPatch(javax.json.JsonArray array)
Create a
JsonPatch as defined in
RFC-6902. |
javax.json.JsonPatchBuilder |
createPatchBuilder()
Create a new JsonPatchBuilder
|
javax.json.JsonPatchBuilder |
createPatchBuilder(javax.json.JsonArray initialData)
Create a new JsonPatchBuilder from initial data.
|
javax.json.JsonPointer |
createPointer(java.lang.String path)
Create a
JsonPointer based on the given path string |
abstract javax.json.JsonReader |
createReader(java.io.InputStream in) |
abstract javax.json.JsonReader |
createReader(java.io.Reader reader) |
abstract javax.json.JsonReaderFactory |
createReaderFactory(java.util.Map<java.lang.String,?> config) |
javax.json.JsonNumber |
createValue(java.math.BigDecimal value) |
javax.json.JsonNumber |
createValue(java.math.BigInteger value) |
javax.json.JsonNumber |
createValue(double value) |
javax.json.JsonNumber |
createValue(int value) |
javax.json.JsonNumber |
createValue(long value) |
javax.json.JsonString |
createValue(java.lang.String value) |
abstract javax.json.JsonWriter |
createWriter(java.io.OutputStream out) |
abstract javax.json.JsonWriter |
createWriter(java.io.Writer writer) |
abstract javax.json.JsonWriterFactory |
createWriterFactory(java.util.Map<java.lang.String,?> config) |
static JsonProvider |
provider() |
public static JsonProvider provider()
public abstract javax.json.stream.JsonParser createParser(java.io.Reader reader)
public abstract javax.json.stream.JsonParser createParser(java.io.InputStream in)
public abstract javax.json.stream.JsonParserFactory createParserFactory(java.util.Map<java.lang.String,?> config)
public abstract javax.json.stream.JsonGenerator createGenerator(java.io.Writer writer)
public abstract javax.json.stream.JsonGenerator createGenerator(java.io.OutputStream out)
public abstract javax.json.stream.JsonGeneratorFactory createGeneratorFactory(java.util.Map<java.lang.String,?> config)
public abstract javax.json.JsonReader createReader(java.io.Reader reader)
public abstract javax.json.JsonReader createReader(java.io.InputStream in)
public abstract javax.json.JsonWriter createWriter(java.io.Writer writer)
public abstract javax.json.JsonWriter createWriter(java.io.OutputStream out)
public abstract javax.json.JsonWriterFactory createWriterFactory(java.util.Map<java.lang.String,?> config)
public abstract javax.json.JsonReaderFactory createReaderFactory(java.util.Map<java.lang.String,?> config)
public abstract javax.json.JsonObjectBuilder createObjectBuilder()
public javax.json.JsonObjectBuilder createObjectBuilder(javax.json.JsonObject jsonObject)
public javax.json.JsonObjectBuilder createObjectBuilder(java.util.Map<java.lang.String,java.lang.Object> map)
public abstract javax.json.JsonArrayBuilder createArrayBuilder()
public javax.json.JsonArrayBuilder createArrayBuilder(javax.json.JsonArray initialData)
public javax.json.JsonArrayBuilder createArrayBuilder(java.util.Collection<?> initialData)
public javax.json.JsonPointer createPointer(java.lang.String path)
JsonPointer
based on the given path stringpublic abstract javax.json.JsonBuilderFactory createBuilderFactory(java.util.Map<java.lang.String,?> config)
public javax.json.JsonString createValue(java.lang.String value)
public javax.json.JsonNumber createValue(int value)
public javax.json.JsonNumber createValue(long value)
public javax.json.JsonNumber createValue(double value)
public javax.json.JsonNumber createValue(java.math.BigDecimal value)
public javax.json.JsonNumber createValue(java.math.BigInteger value)
public javax.json.JsonPatch createPatch(javax.json.JsonArray array)
JsonPatch
as defined in
RFC-6902.array
- with the patch operationscreateDiff(JsonStructure, JsonStructure)
public javax.json.JsonPatch createDiff(javax.json.JsonStructure source, javax.json.JsonStructure target)
JsonPatch
by comparing the source to the target as defined in
RFC-6902.
Applying this JsonPatch
to the source you will give you the target.createPatch(JsonArray)
public javax.json.JsonPatchBuilder createPatchBuilder()
public javax.json.JsonPatchBuilder createPatchBuilder(javax.json.JsonArray initialData)
initialData
- the initial patch operationspublic javax.json.JsonMergePatch createMergePatch(javax.json.JsonValue patch)
{ "a":"z", "c": { "f": null } }and apply it to the following JSON
{ "a": "b", "c": { "d": "e", "f": "g" } }you will get the following result:
{ "a": "z", "c": { "d": "e", } }
createMergeDiff(JsonValue, JsonValue)
public javax.json.JsonMergePatch createMergeDiff(javax.json.JsonValue source, javax.json.JsonValue target)
{ "a": "b", "c": { "d": "e", "f": "g" } }and comparing it with
{ "a": "z", "c": { "d": "e", } }you will get the following JsonMergePatch:
{ "a":"z", "c": { "f": null } }
createMergePatch(JsonValue)
Copyright © 2010 - 2020 Adobe. All Rights Reserved