public class JsonProviderImpl extends JsonProvider
Constructor | Description |
---|---|
JsonProviderImpl() |
Modifier and Type | Method | Description |
---|---|---|
JsonArrayBuilder |
createArrayBuilder() |
Creates a JSON array builder
|
JsonBuilderFactory |
createBuilderFactory(Map<String,?> config) |
Creates a builder factory for creating
JsonArrayBuilder
and JsonObjectBuilder objects. |
JsonGenerator |
createGenerator(OutputStream out) |
Creates a JSON generator for writing JSON text to a byte stream.
|
JsonGenerator |
createGenerator(Writer writer) |
Creates a JSON generator for writing JSON text to a character stream.
|
JsonGeneratorFactory |
createGeneratorFactory(Map<String,?> config) |
Creates a generator factory for creating
JsonGenerator instances. |
JsonObjectBuilder |
createObjectBuilder() |
Creates a JSON object builder
|
JsonParser |
createParser(InputStream in) |
Creates a JSON parser from the specified byte stream.
|
JsonParser |
createParser(Reader reader) |
Creates a JSON parser from a character stream.
|
JsonParserFactory |
createParserFactory(Map<String,?> config) |
Creates a parser factory for creating
JsonParser instances. |
JsonReader |
createReader(InputStream in) |
Creates a JSON reader from a byte stream.
|
JsonReader |
createReader(Reader reader) |
Creates a JSON reader from a character stream.
|
JsonReaderFactory |
createReaderFactory(Map<String,?> config) |
Creates a reader factory for creating
JsonReader objects. |
JsonWriter |
createWriter(OutputStream out) |
|
JsonWriter |
createWriter(Writer writer) |
|
JsonWriterFactory |
createWriterFactory(Map<String,?> config) |
Creates a writer factory for creating
JsonWriter objects. |
provider
public JsonGenerator createGenerator(Writer writer)
JsonProvider
createGenerator
in class JsonProvider
writer
- a i/o writer to which JSON is writtenpublic JsonGenerator createGenerator(OutputStream out)
JsonProvider
createGenerator
in class JsonProvider
out
- i/o stream to which JSON is writtenpublic JsonParser createParser(Reader reader)
JsonProvider
createParser
in class JsonProvider
reader
- i/o reader from which JSON is to be readpublic JsonParser createParser(InputStream in)
JsonProvider
createParser
in class JsonProvider
in
- i/o stream from which JSON is to be readpublic JsonParserFactory createParserFactory(Map<String,?> config)
JsonProvider
JsonParser
instances.
The factory is configured with the specified map of
provider specific configuration properties. Provider implementations
should ignore any unsupported configuration properties specified in
the map.createParserFactory
in class JsonProvider
config
- a map of provider specific properties to configure the
JSON parsers. The map may be empty or nullpublic JsonGeneratorFactory createGeneratorFactory(Map<String,?> config)
JsonProvider
JsonGenerator
instances.
The factory is configured with the specified map of provider specific
configuration properties. Provider implementations should
ignore any unsupported configuration properties specified in the map.createGeneratorFactory
in class JsonProvider
config
- a map of provider specific properties to configure the
JSON generators. The map may be empty or nullpublic JsonReader createReader(Reader reader)
JsonProvider
createReader
in class JsonProvider
reader
- a reader from which JSON is to be readpublic JsonReader createReader(InputStream in)
JsonProvider
createReader
in class JsonProvider
in
- a byte stream from which JSON is to be readpublic JsonWriter createWriter(Writer writer)
JsonProvider
createWriter
in class JsonProvider
writer
- to which JSON object or array is writtenpublic JsonWriter createWriter(OutputStream out)
JsonProvider
object
or array
structure to the specified byte stream. Characters written to
the stream are encoded into bytes using UTF-8 encoding.createWriter
in class JsonProvider
out
- to which JSON object or array is writtenpublic JsonWriterFactory createWriterFactory(Map<String,?> config)
JsonProvider
JsonWriter
objects.
The factory is configured with the specified map of provider specific
configuration properties. Provider implementations should ignore any
unsupported configuration properties specified in the map.createWriterFactory
in class JsonProvider
config
- a map of provider specific properties to configure the
JSON writers. The map may be empty or nullpublic JsonReaderFactory createReaderFactory(Map<String,?> config)
JsonProvider
JsonReader
objects.
The factory is configured with the specified map of provider specific
configuration properties. Provider implementations should ignore any
unsupported configuration properties specified in the map.createReaderFactory
in class JsonProvider
config
- a map of provider specific properties to configure the
JSON readers. The map may be empty or nullpublic JsonObjectBuilder createObjectBuilder()
JsonProvider
createObjectBuilder
in class JsonProvider
public JsonArrayBuilder createArrayBuilder()
JsonProvider
createArrayBuilder
in class JsonProvider
public JsonBuilderFactory createBuilderFactory(Map<String,?> config)
JsonProvider
JsonArrayBuilder
and JsonObjectBuilder
objects.
The factory is configured with the specified map of provider specific
configuration properties. Provider implementations should ignore any
unsupported configuration properties specified in the map.createBuilderFactory
in class JsonProvider
config
- a map of provider specific properties to configure the
JSON builders. The map may be empty or nullCopyright © 2019 Oracle. All rights reserved.