Module jakarta.json
Package jakarta.json

Interface JsonReaderFactory


public interface JsonReaderFactory
Factory to create JsonReader instances. If a factory instance is configured with some configuration, that would be used to configure the created reader instances.

JsonReader can also be created using Json's createReader methods. If multiple reader instances are created, then creating them using a reader factory is preferred.

For example:

 
 JsonReaderFactory factory = Json.createReaderFactory(...);
 JsonReader reader1 = factory.createReader(...);
 JsonReader reader2 = factory.createReader(...);
 
 

All the methods in this class are safe for use by multiple concurrent threads.