Package org.apache.johnzon.core
Class JsonParserFactoryImpl
- java.lang.Object
-
- org.apache.johnzon.core.AbstractJsonFactory
-
- org.apache.johnzon.core.JsonParserFactoryImpl
-
- All Implemented Interfaces:
jakarta.json.stream.JsonParserFactory
,Serializable
public class JsonParserFactoryImpl extends AbstractJsonFactory implements jakarta.json.stream.JsonParserFactory
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTO_ADJUST_STRING_BUFFER
private boolean
autoAdjustBuffers
static String
BUFFER_LENGTH
private BufferStrategy.BufferProvider<char[]>
bufferProvider
static int
DEFAULT_BUFFER_LENGTH
static int
DEFAULT_MAX_STRING_LENGTH
static boolean
DEFAULT_SUPPORTS_COMMENT
private Charset
defaultEncoding
static String
MAX_STRING_LENGTH
private int
maxSize
private JsonProviderImpl
provider
(package private) static Collection<String>
SUPPORTED_CONFIG_KEYS
static String
SUPPORTS_COMMENTS
private boolean
supportsComments
private BufferStrategy.BufferProvider<char[]>
valueBufferProvider
-
Fields inherited from class org.apache.johnzon.core.AbstractJsonFactory
BUFFER_STRATEGY, DEFAULT_BUFFER_STRATEGY, ENCODING, internalConfig
-
-
Constructor Summary
Constructors Constructor Description JsonParserFactoryImpl(Map<String,?> config, JsonProviderImpl provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonStreamParserImpl
createInternalParser(InputStream in)
JsonStreamParserImpl
createInternalParser(InputStream in, Charset charset)
JsonStreamParserImpl
createInternalParser(Reader reader)
jakarta.json.stream.JsonParser
createParser(jakarta.json.JsonArray array)
jakarta.json.stream.JsonParser
createParser(jakarta.json.JsonObject obj)
jakarta.json.stream.JsonParser
createParser(InputStream in)
jakarta.json.stream.JsonParser
createParser(InputStream in, Charset charset)
jakarta.json.stream.JsonParser
createParser(Reader reader)
Map<String,?>
getConfigInUse()
private JsonStreamParserImpl
getDefaultJsonParserImpl(InputStream in)
private JsonStreamParserImpl
getDefaultJsonParserImpl(InputStream in, Charset charset)
private JsonStreamParserImpl
getDefaultJsonParserImpl(Reader in)
BufferStrategy.BufferProvider<char[]>
getValueBufferProvider()
-
Methods inherited from class org.apache.johnzon.core.AbstractJsonFactory
getBool, getBufferProvider, getInt, getString
-
-
-
-
Field Detail
-
MAX_STRING_LENGTH
public static final String MAX_STRING_LENGTH
- See Also:
- Constant Field Values
-
DEFAULT_MAX_STRING_LENGTH
public static final int DEFAULT_MAX_STRING_LENGTH
-
AUTO_ADJUST_STRING_BUFFER
public static final String AUTO_ADJUST_STRING_BUFFER
- See Also:
- Constant Field Values
-
BUFFER_LENGTH
public static final String BUFFER_LENGTH
- See Also:
- Constant Field Values
-
DEFAULT_BUFFER_LENGTH
public static final int DEFAULT_BUFFER_LENGTH
-
SUPPORTS_COMMENTS
public static final String SUPPORTS_COMMENTS
- See Also:
- Constant Field Values
-
DEFAULT_SUPPORTS_COMMENT
public static final boolean DEFAULT_SUPPORTS_COMMENT
-
SUPPORTED_CONFIG_KEYS
static final Collection<String> SUPPORTED_CONFIG_KEYS
-
maxSize
private final int maxSize
-
bufferProvider
private final BufferStrategy.BufferProvider<char[]> bufferProvider
-
valueBufferProvider
private final BufferStrategy.BufferProvider<char[]> valueBufferProvider
-
supportsComments
private final boolean supportsComments
-
autoAdjustBuffers
private final boolean autoAdjustBuffers
-
defaultEncoding
private final Charset defaultEncoding
-
provider
private final JsonProviderImpl provider
-
-
Constructor Detail
-
JsonParserFactoryImpl
JsonParserFactoryImpl(Map<String,?> config, JsonProviderImpl provider)
-
-
Method Detail
-
getValueBufferProvider
public BufferStrategy.BufferProvider<char[]> getValueBufferProvider()
-
getDefaultJsonParserImpl
private JsonStreamParserImpl getDefaultJsonParserImpl(InputStream in)
-
getDefaultJsonParserImpl
private JsonStreamParserImpl getDefaultJsonParserImpl(InputStream in, Charset charset)
-
getDefaultJsonParserImpl
private JsonStreamParserImpl getDefaultJsonParserImpl(Reader in)
-
createParser
public jakarta.json.stream.JsonParser createParser(Reader reader)
- Specified by:
createParser
in interfacejakarta.json.stream.JsonParserFactory
-
createParser
public jakarta.json.stream.JsonParser createParser(InputStream in)
- Specified by:
createParser
in interfacejakarta.json.stream.JsonParserFactory
-
createParser
public jakarta.json.stream.JsonParser createParser(InputStream in, Charset charset)
- Specified by:
createParser
in interfacejakarta.json.stream.JsonParserFactory
-
createParser
public jakarta.json.stream.JsonParser createParser(jakarta.json.JsonObject obj)
- Specified by:
createParser
in interfacejakarta.json.stream.JsonParserFactory
-
createParser
public jakarta.json.stream.JsonParser createParser(jakarta.json.JsonArray array)
- Specified by:
createParser
in interfacejakarta.json.stream.JsonParserFactory
-
getConfigInUse
public Map<String,?> getConfigInUse()
- Specified by:
getConfigInUse
in interfacejakarta.json.stream.JsonParserFactory
-
createInternalParser
public JsonStreamParserImpl createInternalParser(InputStream in)
-
createInternalParser
public JsonStreamParserImpl createInternalParser(InputStream in, Charset charset)
-
createInternalParser
public JsonStreamParserImpl createInternalParser(Reader reader)
-
-