Package org.glassfish.json
Class JsonParserFactoryImpl
java.lang.Object
org.glassfish.json.JsonParserFactoryImpl
- All Implemented Interfaces:
JsonParserFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a JSON parser from the specified byte stream.createParser
(InputStream in, Charset charset) Creates a JSON parser from the specified byte stream.createParser
(Reader reader) Creates a JSON parser from a character stream.createParser
(JsonArray array) Creates a JSON parser from the specified JSON array.createParser
(JsonObject object) Creates a JSON parser from the specified JSON object.Returns a read-only map of supported provider specific configuration properties that are used to configure the JSON parsers.
-
Field Details
-
config
-
bufferPool
-
-
Constructor Details
-
JsonParserFactoryImpl
JsonParserFactoryImpl(BufferPool bufferPool)
-
-
Method Details
-
createParser
Description copied from interface:JsonParserFactory
Creates a JSON parser from a character stream.- Specified by:
createParser
in interfaceJsonParserFactory
- Parameters:
reader
- a i/o reader from which JSON is to be read- Returns:
- the created JSON parser
-
createParser
Description copied from interface:JsonParserFactory
Creates a JSON parser from the specified byte stream. The character encoding of the stream is determined as specified in RFC 7159.- Specified by:
createParser
in interfaceJsonParserFactory
- Parameters:
in
- i/o stream from which JSON is to be read- Returns:
- the created JSON parser
-
createParser
Description copied from interface:JsonParserFactory
Creates a JSON parser from the specified byte stream. The bytes of the stream are decoded to characters using the specified charset.- Specified by:
createParser
in interfaceJsonParserFactory
- Parameters:
in
- i/o stream from which JSON is to be readcharset
- a charset- Returns:
- the created JSON parser
-
createParser
Description copied from interface:JsonParserFactory
Creates a JSON parser from the specified JSON array.- Specified by:
createParser
in interfaceJsonParserFactory
- Parameters:
array
- a JSON array- Returns:
- the created JSON parser
-
getConfigInUse
Description copied from interface:JsonParserFactory
Returns a read-only map of supported provider specific configuration properties that are used to configure the JSON parsers. If there are any specified configuration properties that are not supported by the provider, they won't be part of the returned map.- Specified by:
getConfigInUse
in interfaceJsonParserFactory
- Returns:
- a map of supported provider specific properties that are used to configure the created parsers. The map may be empty but not null
-
createParser
Description copied from interface:JsonParserFactory
Creates a JSON parser from the specified JSON object.- Specified by:
createParser
in interfaceJsonParserFactory
- Parameters:
object
- a JSON object- Returns:
- the created JSON parser
-