class JsonParserFactoryImpl extends java.lang.Object implements JsonParserFactory
| Modifier and Type | Field and Description |
|---|---|
private BufferPool |
bufferPool |
private java.util.Map<java.lang.String,?> |
config |
| Constructor and Description |
|---|
JsonParserFactoryImpl(BufferPool bufferPool) |
| Modifier and Type | Method and Description |
|---|---|
JsonParser |
createParser(java.io.InputStream in)
Creates a JSON parser from the specified byte stream.
|
JsonParser |
createParser(java.io.InputStream in,
java.nio.charset.Charset charset)
Creates a JSON parser from the specified byte stream.
|
JsonParser |
createParser(JsonArray array)
Creates a JSON parser from the specified JSON array.
|
JsonParser |
createParser(JsonObject object)
Creates a JSON parser from the specified JSON object.
|
JsonParser |
createParser(java.io.Reader reader)
Creates a JSON parser from a character stream.
|
java.util.Map<java.lang.String,?> |
getConfigInUse()
Returns a read-only map of supported provider specific configuration
properties that are used to configure the JSON parsers.
|
private final java.util.Map<java.lang.String,?> config
private final BufferPool bufferPool
JsonParserFactoryImpl(BufferPool bufferPool)
public JsonParser createParser(java.io.Reader reader)
JsonParserFactorycreateParser in interface JsonParserFactoryreader - a i/o reader from which JSON is to be readpublic JsonParser createParser(java.io.InputStream in)
JsonParserFactorycreateParser in interface JsonParserFactoryin - i/o stream from which JSON is to be readpublic JsonParser createParser(java.io.InputStream in, java.nio.charset.Charset charset)
JsonParserFactorycreateParser in interface JsonParserFactoryin - i/o stream from which JSON is to be readcharset - a charsetpublic JsonParser createParser(JsonArray array)
JsonParserFactorycreateParser in interface JsonParserFactoryarray - a JSON arraypublic java.util.Map<java.lang.String,?> getConfigInUse()
JsonParserFactorygetConfigInUse in interface JsonParserFactorypublic JsonParser createParser(JsonObject object)
JsonParserFactorycreateParser in interface JsonParserFactoryobject - a JSON object