|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.json.spi.JsonProvider
public abstract class JsonProvider
Service provider for JSON objects.
ServiceLoader| Constructor Summary | |
|---|---|
protected |
JsonProvider()
|
| Method Summary | |
|---|---|
abstract JsonGenerator |
createGenerator(OutputStream out)
Creates a JSON generator which can be used to write JSON text to the specified byte stream. |
abstract JsonGenerator |
createGenerator(OutputStream out,
JsonConfiguration config)
Creates a JSON generator which can be used to write JSON text to the specified byte stream. |
abstract JsonGenerator |
createGenerator(OutputStream out,
String encoding)
Creates a JSON generator which can be used to write JSON text to the specified byte stream. |
abstract JsonGenerator |
createGenerator(OutputStream out,
String encoding,
JsonConfiguration config)
Creates a JSON generator which can be used to write JSON text to the specified byte stream. |
abstract JsonGenerator |
createGenerator(Writer writer)
Creates a JSON generator which can be used to write JSON text to the specified character stream. |
abstract JsonGenerator |
createGenerator(Writer writer,
JsonConfiguration config)
Creates a JSON generator which can be used to write JSON text to the specified character stream. |
abstract JsonGeneratorFactory |
createGeneratorFactory()
Creates a generator factory which can be used to create JsonGenerator. |
abstract JsonGeneratorFactory |
createGeneratorFactory(JsonConfiguration config)
Creates a generator factory which can be used to create JsonGenerator. |
abstract JsonParser |
createParser(InputStream in)
Creates a JSON parser from the specified byte stream. |
abstract JsonParser |
createParser(InputStream in,
JsonConfiguration config)
Creates a JSON parser from the specified byte stream. |
abstract JsonParser |
createParser(InputStream in,
String encoding)
Creates a JSON parser from the specified byte stream. |
abstract JsonParser |
createParser(InputStream in,
String encoding,
JsonConfiguration config)
Creates a JSON parser from the specified byte stream. |
abstract JsonParser |
createParser(JsonArray array)
Creates a JSON parser from the specified JSON array. |
abstract JsonParser |
createParser(JsonArray array,
JsonConfiguration config)
Creates a JSON parser from the specified JSON array. |
abstract JsonParser |
createParser(JsonObject object)
Creates a JSON parser from the specified JSON object. |
abstract JsonParser |
createParser(JsonObject object,
JsonConfiguration config)
Creates a JSON parser from the specified JSON object. |
abstract JsonParser |
createParser(Reader reader)
Creates a JSON parser from the specified character stream |
abstract JsonParser |
createParser(Reader reader,
JsonConfiguration config)
Creates a JSON parser from the specified character stream. |
abstract JsonParserFactory |
createParserFactory()
Creates a parser factory which can be used to create JsonParser. |
abstract JsonParserFactory |
createParserFactory(JsonConfiguration config)
Creates a parser factory which can be used to create JsonParser. |
static JsonProvider |
provider()
Creates a JSON provider object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JsonProvider()
| Method Detail |
|---|
public static JsonProvider provider()
ServiceLoader.load(Class) method. If there is no available
service provider is found, then the default service provider
is loaded using the current thread's
context class loader.
ServiceLoaderpublic abstract JsonParser createParser(Reader reader)
reader - i/o reader from which JSON is to be read
public abstract JsonParser createParser(Reader reader,
JsonConfiguration config)
reader - i/o reader from which JSON is to be readconfig - configuration of the parserpublic abstract JsonParser createParser(InputStream in)
in - i/o stream from which JSON is to be read
JsonException - if encoding cannot be determined
or i/o error
public abstract JsonParser createParser(InputStream in,
String encoding)
in - i/o stream from which JSON is to be readencoding - the character encoding of the stream
JsonException - if encoding is not supported
or i/o error
public abstract JsonParser createParser(InputStream in,
JsonConfiguration config)
in - i/o stream from which JSON is to be readconfig - configuration of the parser
public abstract JsonParser createParser(InputStream in,
String encoding,
JsonConfiguration config)
in - i/o stream from which JSON is to be readencoding - the character encoding of the streamconfig - configuration of the parserpublic abstract JsonParser createParser(JsonArray array)
array - JSON array
public abstract JsonParser createParser(JsonArray array,
JsonConfiguration config)
array - JSON arrayconfig - configuration of the parserpublic abstract JsonParser createParser(JsonObject object)
object - JSON object
public abstract JsonParser createParser(JsonObject object,
JsonConfiguration config)
object - JSON objectconfig - configuration of the parserpublic abstract JsonParserFactory createParserFactory()
JsonParser.
public abstract JsonParserFactory createParserFactory(JsonConfiguration config)
JsonParser.
The created parser factory is configured with the specified
configuration
config - configuration of the parser factory
public abstract JsonGenerator createGenerator(Writer writer)
writer - a i/o writer to which JSON is written
public abstract JsonGenerator createGenerator(Writer writer,
JsonConfiguration config)
writer - i/o writer to which JSON is writtenconfig - configuration of the generatorpublic abstract JsonGenerator createGenerator(OutputStream out)
out - i/o stream to which JSON is written
public abstract JsonGenerator createGenerator(OutputStream out,
JsonConfiguration config)
out - i/o stream to which JSON is writtenconfig - configuration of the generator
public abstract JsonGenerator createGenerator(OutputStream out,
String encoding)
out - i/o stream to which JSON is writtenencoding - the character encoding of the stream
public abstract JsonGenerator createGenerator(OutputStream out,
String encoding,
JsonConfiguration config)
out - i/o stream to which JSON is writtenencoding - the character encoding of the streamconfig - configuration of the generatorpublic abstract JsonGeneratorFactory createGeneratorFactory()
JsonGenerator.
public abstract JsonGeneratorFactory createGeneratorFactory(JsonConfiguration config)
JsonGenerator.
The created generator factory is configured with the specified
configuration.
config - configuration of the generator factory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||