Package org.glassfish.json
Class JsonReaderFactoryImpl
java.lang.Object
org.glassfish.json.JsonReaderFactoryImpl
- All Implemented Interfaces:
JsonReaderFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a JSON reader from a byte stream.createReader
(InputStream in, Charset charset) Creates a JSON reader from a byte stream.createReader
(Reader reader) Creates a JSON reader from a character stream.Returns read-only map of supported provider specific configuration properties that are used to configure the created JSON readers.
-
Field Details
-
config
-
bufferPool
-
-
Constructor Details
-
JsonReaderFactoryImpl
JsonReaderFactoryImpl(BufferPool bufferPool)
-
-
Method Details
-
createReader
Description copied from interface:JsonReaderFactory
Creates a JSON reader from a character stream. The reader is configured with the factory configuration.- Specified by:
createReader
in interfaceJsonReaderFactory
- Parameters:
reader
- a reader from which JSON is to be read- Returns:
- a JSON reader
-
createReader
Description copied from interface:JsonReaderFactory
Creates a JSON reader from a byte stream. The character encoding of the stream is determined as described in RFC 4627. The reader is configured with the factory configuration.- Specified by:
createReader
in interfaceJsonReaderFactory
- Parameters:
in
- a byte stream from which JSON is to be read- Returns:
- a JSON reader
-
createReader
Description copied from interface:JsonReaderFactory
Creates a JSON reader from a byte stream. The bytes of the stream are decoded to characters using the specified charset. The reader is configured with the factory configuration.- Specified by:
createReader
in interfaceJsonReaderFactory
- Parameters:
in
- a byte stream from which JSON is to be readcharset
- a charset- Returns:
- a JSON reader
-
getConfigInUse
Description copied from interface:JsonReaderFactory
Returns read-only map of supported provider specific configuration properties that are used to configure the created JSON readers. 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 interfaceJsonReaderFactory
- Returns:
- a map of supported provider specific properties that are used to configure the readers. The map be empty but not null.
-