public class JsonProviderImpl extends JsonProvider
| Constructor and Description |
|---|
JsonProviderImpl() |
| Modifier and Type | Method and Description |
|---|---|
JsonArrayBuilder |
createArrayBuilder()
Creates a JSON array builder
|
JsonBuilderFactory |
createBuilderFactory(java.util.Map<java.lang.String,?> config)
Creates a builder factory for creating
JsonArrayBuilder
and JsonObjectBuilder objects. |
JsonGenerator |
createGenerator(java.io.OutputStream out)
Creates a JSON generator for writing JSON text to a byte stream.
|
JsonGenerator |
createGenerator(java.io.Writer writer)
Creates a JSON generator for writing JSON text to a character stream.
|
JsonGeneratorFactory |
createGeneratorFactory(java.util.Map<java.lang.String,?> config)
Creates a generator factory for creating
JsonGenerator instances. |
JsonObjectBuilder |
createObjectBuilder()
Creates a JSON object builder
|
JsonParser |
createParser(java.io.InputStream in)
Creates a JSON parser from the specified byte stream.
|
JsonParser |
createParser(java.io.Reader reader)
Creates a JSON parser from a character stream.
|
JsonParserFactory |
createParserFactory(java.util.Map<java.lang.String,?> config)
Creates a parser factory for creating
JsonParser instances. |
JsonReader |
createReader(java.io.InputStream in)
Creates a JSON reader from a byte stream.
|
JsonReader |
createReader(java.io.Reader reader)
Creates a JSON reader from a character stream.
|
JsonReaderFactory |
createReaderFactory(java.util.Map<java.lang.String,?> config)
Creates a reader factory for creating
JsonReader objects. |
JsonWriter |
createWriter(java.io.OutputStream out)
|
JsonWriter |
createWriter(java.io.Writer writer)
|
JsonWriterFactory |
createWriterFactory(java.util.Map<java.lang.String,?> config)
Creates a writer factory for creating
JsonWriter objects. |
providerpublic JsonGenerator createGenerator(java.io.Writer writer)
JsonProvidercreateGenerator in class JsonProviderwriter - a i/o writer to which JSON is writtenpublic JsonGenerator createGenerator(java.io.OutputStream out)
JsonProvidercreateGenerator in class JsonProviderout - i/o stream to which JSON is writtenpublic JsonParser createParser(java.io.Reader reader)
JsonProvidercreateParser in class JsonProviderreader - i/o reader from which JSON is to be readpublic JsonParser createParser(java.io.InputStream in)
JsonProvidercreateParser in class JsonProviderin - i/o stream from which JSON is to be readpublic JsonParserFactory createParserFactory(java.util.Map<java.lang.String,?> config)
JsonProviderJsonParser 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 JsonProviderconfig - a map of provider specific properties to configure the
JSON parsers. The map may be empty or nullpublic JsonGeneratorFactory createGeneratorFactory(java.util.Map<java.lang.String,?> config)
JsonProviderJsonGenerator 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 JsonProviderconfig - a map of provider specific properties to configure the
JSON generators. The map may be empty or nullpublic JsonReader createReader(java.io.Reader reader)
JsonProvidercreateReader in class JsonProviderreader - a reader from which JSON is to be readpublic JsonReader createReader(java.io.InputStream in)
JsonProvidercreateReader in class JsonProviderin - a byte stream from which JSON is to be readpublic JsonWriter createWriter(java.io.Writer writer)
JsonProvidercreateWriter in class JsonProviderwriter - to which JSON object or array is writtenpublic JsonWriter createWriter(java.io.OutputStream out)
JsonProviderobject or array
structure to the specified byte stream. Characters written to
the stream are encoded into bytes using UTF-8 encoding.createWriter in class JsonProviderout - to which JSON object or array is writtenpublic JsonWriterFactory createWriterFactory(java.util.Map<java.lang.String,?> config)
JsonProviderJsonWriter 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 JsonProviderconfig - a map of provider specific properties to configure the
JSON writers. The map may be empty or nullpublic JsonReaderFactory createReaderFactory(java.util.Map<java.lang.String,?> config)
JsonProviderJsonReader 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 JsonProviderconfig - a map of provider specific properties to configure the
JSON readers. The map may be empty or nullpublic JsonObjectBuilder createObjectBuilder()
JsonProvidercreateObjectBuilder in class JsonProviderpublic JsonArrayBuilder createArrayBuilder()
JsonProvidercreateArrayBuilder in class JsonProviderpublic JsonBuilderFactory createBuilderFactory(java.util.Map<java.lang.String,?> config)
JsonProviderJsonArrayBuilder
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 JsonProviderconfig - a map of provider specific properties to configure the
JSON builders. The map may be empty or nullCopyright © 2013 Oracle. All Rights Reserved.