| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected int | |
| pack-priv static final int | DEFAULT_TOML_GENERATOR_FEATURE_FLAGS
Bitfield (set of flags) of all generator features that are enabled by default. |
| pack-priv static final int | DEFAULT_TOML_PARSER_FEATURE_FLAGS
Bitfield (set of flags) of all generator features that are enabled by default. |
| public static final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected JsonGenerator | _createGenerator(Writer
Writer underlying writer to write generated content to out, IOContext I/O context to use ctxt)Overrides com. Overridable factory method that actually instantiates generator for
given |
| public JsonParser | _createParser(InputStream
InputStream to use for reading content to parse in, IOContext I/O context to use for parsing ctxt)Overrides com. Overridable factory method that actually instantiates desired parser
given |
| public JsonParser | _createParser(Reader
Reader to use for reading content to parse r, IOContext I/O context to use for parsing ctxt)Overrides com. Overridable factory method that actually instantiates parser
using given |
| public JsonParser | _createParser(byte[]
Buffer that contains content to parse data, int Offset to the first character of data to parse offset, int Number of characters within buffer to parse len, IOContext I/O context to use for parsing ctxt)Overrides com. Overridable factory method that actually instantiates parser
using given |
| protected JsonParser | _createParser(char[]
Buffer that contains content to parse data, int Offset to the first character of data to parse offset, int Number of characters within buffer to parse len, IOContext I/O context to use for parsing ctxt, boolean Whether input buffer is recycled by the factory recyclable)Overrides com. Overridable factory method that actually instantiates parser
using given |
| protected JsonGenerator | _createUTF8Generator(OutputStream
OutputStream underlying writer to write generated content to out, IOContext I/O context to use ctxt)Overrides com. Overridable factory method that actually instantiates generator for
given |
| public static TomlFactoryBuilder | builder()
Hides com. Main factory method to use for constructing |
| public boolean | canParseAsync()
Overrides com. Introspection method that can be used to check whether this
factory can create non-blocking parsers: parsers that do not
use blocking I/O abstractions but instead use a
|
| public boolean | canUseCharArrays()
Overrides com. Introspection method that can be used by base factory to check
whether access using |
| public boolean | canUseSchema(FormatSchema
Schema instance to check schema)Overrides com. Method that can be used to quickly check whether given schema is something that parsers and/or generators constructed by this factory could use. |
| public final TomlFactory | configure(TomlReadFeature f, boolean state)
Method for enabling or disabling specified parser feature
(check |
| public final TomlFactory | configure(TomlWriteFeature f, boolean state)
Method for enabling or disabling specified generator feature
(check |
| public TomlFactory | copy()
Overrides com. Method for constructing a new |
| public TomlFactory | disable(TomlReadFeature f)
Method for disabling specified parser features
(check |
| public TomlFactory | disable(TomlWriteFeature f)
Method for disabling specified generator features
(check |
| public TomlFactory | enable(TomlReadFeature f)
Method for enabling specified parser feature
(check |
| public TomlFactory | enable(TomlWriteFeature f)
Method for enabling specified generator feature
(check |
| public int | |
| public String | getFormatName()
Overrides com. Method that returns short textual id identifying format this factory supports. |
| public int | |
| public Class | getFormatReadFeatureType()
Overrides com. Method for accessing kind of |
| public Class | getFormatWriteFeatureType()
Overrides com. Method for accessing kind of |
| public MatchStrength | |
| public final boolean | |
| public final boolean | |
| private ObjectNode | |
| public TomlFactoryBuilder | rebuild()
Overrides com. Method that allows construction of differently configured factory, starting with settings of this factory. |
| public boolean | requiresPropertyOrdering()
Overrides com. Introspection method that higher-level functionality may call to see whether underlying data format requires a stable ordering of object properties or not. |
| public Version | version()
Overrides com. Implements com. Method called to detect version of the component that implements this interface;
returned version should never be null, but may return specific "not available"
instance (see |
| _tomlGeneratorFeatures | back to summary |
|---|---|
| protected int _tomlGeneratorFeatures | |
| _tomlParserFeatures | back to summary |
|---|---|
| protected int _tomlParserFeatures | |
| DEFAULT_TOML_GENERATOR_FEATURE_FLAGS | back to summary |
|---|---|
| pack-priv static final int DEFAULT_TOML_GENERATOR_FEATURE_FLAGS Bitfield (set of flags) of all generator features that are enabled by default. | |
| DEFAULT_TOML_PARSER_FEATURE_FLAGS | back to summary |
|---|---|
| pack-priv static final int DEFAULT_TOML_PARSER_FEATURE_FLAGS Bitfield (set of flags) of all generator features that are enabled by default. | |
| FORMAT_NAME_TOML | back to summary |
|---|---|
| public static final String FORMAT_NAME_TOML | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| TomlFactory | back to summary |
|---|---|
| public TomlFactory() | |
| TomlFactory | back to summary |
|---|---|
| pack-priv TomlFactory(TomlFactory src, ObjectCodec oc) | |
| TomlFactory | back to summary |
|---|---|
| pack-priv TomlFactory(TomlFactoryBuilder b) Constructors used by
| |
| _createGenerator | back to summary |
|---|---|
| protected JsonGenerator _createGenerator(Writer out, IOContext ctxt) throws IOException Overrides com. Doc from com. Overridable factory method that actually instantiates generator for
given This method is specifically designed to remain compatible between minor versions so that sub-classes can count on it being called as expected. That is, it is part of official interface from sub-class perspective, although not a public method available to users of factory implementations.
| |
| _createParser | back to summary |
|---|---|
| public JsonParser _createParser(InputStream in, IOContext ctxt) throws IOException Overrides com. Doc from com. Overridable factory method that actually instantiates desired parser
given This method is specifically designed to remain compatible between minor versions so that sub-classes can count on it being called as expected. That is, it is part of official interface from sub-class perspective, although not a public method available to users of factory implementations.
| |
| _createParser | back to summary |
|---|---|
| public JsonParser _createParser(Reader r, IOContext ctxt) throws IOException Overrides com. Doc from com. Overridable factory method that actually instantiates parser
using given This method is specifically designed to remain compatible between minor versions so that sub-classes can count on it being called as expected. That is, it is part of official interface from sub-class perspective, although not a public method available to users of factory implementations.
| |
| _createParser | back to summary |
|---|---|
| public JsonParser _createParser(byte[] data, int offset, int len, IOContext ctxt) throws IOException Overrides com. Doc from com. Overridable factory method that actually instantiates parser
using given This method is specifically designed to remain compatible between minor versions so that sub-classes can count on it being called as expected. That is, it is part of official interface from sub-class perspective, although not a public method available to users of factory implementations.
| |
| _createParser | back to summary |
|---|---|
| protected JsonParser _createParser(char[] data, int offset, int len, IOContext ctxt, boolean recyclable) throws IOException Overrides com. Doc from com. Overridable factory method that actually instantiates parser
using given
| |
| _createUTF8Generator | back to summary |
|---|---|
| protected JsonGenerator _createUTF8Generator(OutputStream out, IOContext ctxt) throws IOException Overrides com. Doc from com. Overridable factory method that actually instantiates generator for
given This method is specifically designed to remain compatible between minor versions so that sub-classes can count on it being called as expected. That is, it is part of official interface from sub-class perspective, although not a public method available to users of factory implementations.
| |
| builder | back to summary |
|---|---|
| public static TomlFactoryBuilder builder() Hides com. Main factory method to use for constructing
| |
| canParseAsync | back to summary |
|---|---|
| public boolean canParseAsync() Overrides com. Doc from com. Introspection method that can be used to check whether this
factory can create non-blocking parsers: parsers that do not
use blocking I/O abstractions but instead use a
| |
| canUseCharArrays | back to summary |
|---|---|
| public boolean canUseCharArrays() Overrides com. Doc from com. Introspection method that can be used by base factory to check
whether access using
| |
| canUseSchema | back to summary |
|---|---|
| public boolean canUseSchema(FormatSchema schema) Overrides com. Doc from com. Method that can be used to quickly check whether given schema is something that parsers and/or generators constructed by this factory could use. Note that this means possible use, at the level of data format (i.e. schema is for same data format as parsers and generators this factory constructs); individual schema instances may have further usage restrictions.
| |
| configure | back to summary |
|---|---|
| public final TomlFactory configure(TomlReadFeature f, boolean state) Method for enabling or disabling specified parser feature
(check | |
| configure | back to summary |
|---|---|
| public final TomlFactory configure(TomlWriteFeature f, boolean state) Method for enabling or disabling specified generator feature
(check | |
| copy | back to summary |
|---|---|
| public TomlFactory copy() Overrides com. Doc from com. Method for constructing a new
| |
| disable | back to summary |
|---|---|
| public TomlFactory disable(TomlReadFeature f) Method for disabling specified parser features
(check | |
| disable | back to summary |
|---|---|
| public TomlFactory disable(TomlWriteFeature f) Method for disabling specified generator features
(check | |
| enable | back to summary |
|---|---|
| public TomlFactory enable(TomlReadFeature f) Method for enabling specified parser feature
(check | |
| enable | back to summary |
|---|---|
| public TomlFactory enable(TomlWriteFeature f) Method for enabling specified generator feature
(check | |
| getFormatGeneratorFeatures | back to summary |
|---|---|
| public int getFormatGeneratorFeatures() Overrides com.
| |
| getFormatName | back to summary |
|---|---|
| public String getFormatName() Overrides com. Doc from com. Method that returns short textual id identifying format this factory supports. Note sub-classes should override this method; default implementation will return null for all sub-classes | |
| getFormatParserFeatures | back to summary |
|---|---|
| public int getFormatParserFeatures() Overrides com.
| |
| getFormatReadFeatureType | back to summary |
|---|---|
| public Class Overrides com. Doc from com. Method for accessing kind of
| |
| getFormatWriteFeatureType | back to summary |
|---|---|
| public Class Overrides com. Doc from com. Method for accessing kind of
| |
| hasFormat | back to summary |
|---|---|
| public MatchStrength hasFormat(InputAccessor acc) throws IOException Overrides com.
| |
| isEnabled | back to summary |
|---|---|
| public final boolean isEnabled(TomlReadFeature f) Checked whether specified parser feature is enabled. | |
| isEnabled | back to summary |
|---|---|
| public final boolean isEnabled(TomlWriteFeature f) Checked whether specified generator feature is enabled. | |
| parse | back to summary |
|---|---|
| private ObjectNode parse(IOContext ctxt, Reader r0) throws IOException | |
| rebuild | back to summary |
|---|---|
| public TomlFactoryBuilder rebuild() Overrides com. Doc from com. Method that allows construction of differently configured factory, starting with settings of this factory.
| |
| requiresPropertyOrdering | back to summary |
|---|---|
| public boolean requiresPropertyOrdering() Overrides com. Doc from com. Introspection method that higher-level functionality may call to see whether underlying data format requires a stable ordering of object properties or not. This is usually used for determining whether to force a stable ordering (like alphabetic ordering by name) if no ordering if explicitly specified.
Default implementation returns
| |
| version | back to summary |
|---|---|
| public Version version() Overrides com. Implements com. Doc from com. Method called to detect version of the component that implements this interface;
returned version should never be null, but may return specific "not available"
instance (see | |