Class TomlFactory
- java.lang.Object
-
- com.fasterxml.jackson.core.TokenStreamFactory
-
- com.fasterxml.jackson.core.JsonFactory
-
- com.fasterxml.jackson.dataformat.toml.TomlFactory
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned,java.io.Serializable
public final class TomlFactory extends com.fasterxml.jackson.core.JsonFactory- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int_tomlGeneratorFeaturesprotected int_tomlParserFeatures(package private) static intDEFAULT_TOML_GENERATOR_FEATURE_FLAGSBitfield (set of flags) of all generator features that are enabled by default.(package private) static intDEFAULT_TOML_PARSER_FEATURE_FLAGSBitfield (set of flags) of all generator features that are enabled by default.static java.lang.StringFORMAT_NAME_TOMLprivate static longserialVersionUID-
Fields inherited from class com.fasterxml.jackson.core.JsonFactory
_byteSymbolCanonicalizer, _characterEscapes, _errorReportConfiguration, _factoryFeatures, _generatorDecorators, _generatorFeatures, _inputDecorator, _maximumNonEscapedChar, _objectCodec, _outputDecorator, _parserFeatures, _quoteChar, _recyclerPool, _rootCharSymbols, _rootValueSeparator, _streamReadConstraints, _streamWriteConstraints, DEFAULT_FACTORY_FEATURE_FLAGS, DEFAULT_GENERATOR_FEATURE_FLAGS, DEFAULT_PARSER_FEATURE_FLAGS, DEFAULT_QUOTE_CHAR, DEFAULT_ROOT_VALUE_SEPARATOR, FORMAT_NAME_JSON
-
-
Constructor Summary
Constructors Constructor Description TomlFactory()TomlFactory(TomlFactoryBuilder b)Constructors used byTomlFactoryBuilderfor instantiation.TomlFactory(TomlFactory src, com.fasterxml.jackson.core.ObjectCodec oc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.core.JsonGenerator_createGenerator(java.io.Writer out, com.fasterxml.jackson.core.io.IOContext ctxt)com.fasterxml.jackson.core.JsonParser_createParser(byte[] data, int offset, int len, com.fasterxml.jackson.core.io.IOContext ctxt)protected com.fasterxml.jackson.core.JsonParser_createParser(char[] data, int offset, int len, com.fasterxml.jackson.core.io.IOContext ctxt, boolean recyclable)com.fasterxml.jackson.core.JsonParser_createParser(java.io.InputStream in, com.fasterxml.jackson.core.io.IOContext ctxt)com.fasterxml.jackson.core.JsonParser_createParser(java.io.Reader r, com.fasterxml.jackson.core.io.IOContext ctxt)protected com.fasterxml.jackson.core.JsonGenerator_createUTF8Generator(java.io.OutputStream out, com.fasterxml.jackson.core.io.IOContext ctxt)static TomlFactoryBuilderbuilder()Main factory method to use for constructingTomlFactoryinstances with different configuration.booleancanParseAsync()booleancanUseCharArrays()booleancanUseSchema(com.fasterxml.jackson.core.FormatSchema schema)TomlFactoryconfigure(TomlReadFeature f, boolean state)Method for enabling or disabling specified parser feature (checkTomlReadFeaturefor list of features)TomlFactoryconfigure(TomlWriteFeature f, boolean state)Method for enabling or disabling specified generator feature (checkTomlWriteFeaturefor list of features)TomlFactorycopy()TomlFactorydisable(TomlReadFeature f)Method for disabling specified parser features (checkTomlReadFeaturefor list of features)TomlFactorydisable(TomlWriteFeature f)Method for disabling specified generator features (checkTomlWriteFeaturefor list of features)TomlFactoryenable(TomlReadFeature f)Method for enabling specified parser feature (checkTomlReadFeaturefor list of features)TomlFactoryenable(TomlWriteFeature f)Method for enabling specified generator feature (checkTomlWriteFeaturefor list of features)intgetFormatGeneratorFeatures()java.lang.StringgetFormatName()intgetFormatParserFeatures()java.lang.Class<? extends com.fasterxml.jackson.core.FormatFeature>getFormatReadFeatureType()java.lang.Class<? extends com.fasterxml.jackson.core.FormatFeature>getFormatWriteFeatureType()com.fasterxml.jackson.core.format.MatchStrengthhasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)booleanisEnabled(TomlReadFeature f)Checked whether specified parser feature is enabled.booleanisEnabled(TomlWriteFeature f)Checked whether specified generator feature is enabled.private com.fasterxml.jackson.databind.node.ObjectNodeparse(com.fasterxml.jackson.core.io.IOContext ctxt, java.io.Reader r0)TomlFactoryBuilderrebuild()booleanrequiresPropertyOrdering()com.fasterxml.jackson.core.Versionversion()-
Methods inherited from class com.fasterxml.jackson.core.JsonFactory
_checkInvalidCopy, _copy, _createContentReference, _createContentReference, _createContext, _createContext, _createNonBlockingContext, _createParser, _createWriter, _decorate, _decorate, _decorate, _decorate, _decorate, _decorate, _getBufferRecycler, _getRecyclerPool, canHandleBinaryNatively, configure, configure, configure, createGenerator, createGenerator, createGenerator, createGenerator, createGenerator, createGenerator, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createNonBlockingByteArrayParser, createNonBlockingByteBufferParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, disable, disable, disable, enable, enable, enable, getCharacterEscapes, getCodec, getFactoryFeatures, getGeneratorFeatures, getInputDecorator, getOutputDecorator, getParserFeatures, getRootValueSeparator, hasJSONFormat, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, readResolve, requiresCustomCodec, setCharacterEscapes, setCodec, setErrorReportConfiguration, setInputDecorator, setOutputDecorator, setRecyclerPool, setRootValueSeparator, setStreamReadConstraints, setStreamWriteConstraints, streamReadConstraints, streamWriteConstraints
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
FORMAT_NAME_TOML
public static final java.lang.String FORMAT_NAME_TOML
- See Also:
- Constant Field Values
-
DEFAULT_TOML_PARSER_FEATURE_FLAGS
static final int DEFAULT_TOML_PARSER_FEATURE_FLAGS
Bitfield (set of flags) of all generator features that are enabled by default.
-
DEFAULT_TOML_GENERATOR_FEATURE_FLAGS
static final int DEFAULT_TOML_GENERATOR_FEATURE_FLAGS
Bitfield (set of flags) of all generator features that are enabled by default.
-
_tomlParserFeatures
protected int _tomlParserFeatures
-
_tomlGeneratorFeatures
protected int _tomlGeneratorFeatures
-
-
Constructor Detail
-
TomlFactory
public TomlFactory()
-
TomlFactory
TomlFactory(TomlFactory src, com.fasterxml.jackson.core.ObjectCodec oc)
-
TomlFactory
TomlFactory(TomlFactoryBuilder b)
Constructors used byTomlFactoryBuilderfor instantiation.- Since:
- 3.0
-
-
Method Detail
-
rebuild
public TomlFactoryBuilder rebuild()
- Overrides:
rebuildin classcom.fasterxml.jackson.core.JsonFactory
-
builder
public static TomlFactoryBuilder builder()
Main factory method to use for constructingTomlFactoryinstances with different configuration.
-
copy
public TomlFactory copy()
- Overrides:
copyin classcom.fasterxml.jackson.core.JsonFactory
-
version
public com.fasterxml.jackson.core.Version version()
- Specified by:
versionin interfacecom.fasterxml.jackson.core.Versioned- Overrides:
versionin classcom.fasterxml.jackson.core.JsonFactory
-
requiresPropertyOrdering
public boolean requiresPropertyOrdering()
- Overrides:
requiresPropertyOrderingin classcom.fasterxml.jackson.core.JsonFactory
-
canUseCharArrays
public boolean canUseCharArrays()
- Overrides:
canUseCharArraysin classcom.fasterxml.jackson.core.JsonFactory
-
canParseAsync
public boolean canParseAsync()
- Overrides:
canParseAsyncin classcom.fasterxml.jackson.core.JsonFactory
-
getFormatName
public java.lang.String getFormatName()
- Overrides:
getFormatNamein classcom.fasterxml.jackson.core.JsonFactory
-
canUseSchema
public boolean canUseSchema(com.fasterxml.jackson.core.FormatSchema schema)
- Overrides:
canUseSchemain classcom.fasterxml.jackson.core.JsonFactory
-
getFormatReadFeatureType
public java.lang.Class<? extends com.fasterxml.jackson.core.FormatFeature> getFormatReadFeatureType()
- Overrides:
getFormatReadFeatureTypein classcom.fasterxml.jackson.core.JsonFactory
-
getFormatWriteFeatureType
public java.lang.Class<? extends com.fasterxml.jackson.core.FormatFeature> getFormatWriteFeatureType()
- Overrides:
getFormatWriteFeatureTypein classcom.fasterxml.jackson.core.JsonFactory
-
hasFormat
public com.fasterxml.jackson.core.format.MatchStrength hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc) throws java.io.IOException- Overrides:
hasFormatin classcom.fasterxml.jackson.core.JsonFactory- Throws:
java.io.IOException
-
configure
public final TomlFactory configure(TomlReadFeature f, boolean state)
Method for enabling or disabling specified parser feature (checkTomlReadFeaturefor list of features)
-
enable
public TomlFactory enable(TomlReadFeature f)
Method for enabling specified parser feature (checkTomlReadFeaturefor list of features)
-
disable
public TomlFactory disable(TomlReadFeature f)
Method for disabling specified parser features (checkTomlReadFeaturefor list of features)
-
isEnabled
public final boolean isEnabled(TomlReadFeature f)
Checked whether specified parser feature is enabled.
-
getFormatParserFeatures
public int getFormatParserFeatures()
- Overrides:
getFormatParserFeaturesin classcom.fasterxml.jackson.core.JsonFactory
-
configure
public final TomlFactory configure(TomlWriteFeature f, boolean state)
Method for enabling or disabling specified generator feature (checkTomlWriteFeaturefor list of features)
-
enable
public TomlFactory enable(TomlWriteFeature f)
Method for enabling specified generator feature (checkTomlWriteFeaturefor list of features)
-
disable
public TomlFactory disable(TomlWriteFeature f)
Method for disabling specified generator features (checkTomlWriteFeaturefor list of features)
-
isEnabled
public final boolean isEnabled(TomlWriteFeature f)
Checked whether specified generator feature is enabled.
-
getFormatGeneratorFeatures
public int getFormatGeneratorFeatures()
- Overrides:
getFormatGeneratorFeaturesin classcom.fasterxml.jackson.core.JsonFactory
-
_createParser
public com.fasterxml.jackson.core.JsonParser _createParser(java.io.InputStream in, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException- Overrides:
_createParserin classcom.fasterxml.jackson.core.JsonFactory- Throws:
java.io.IOException
-
_createParser
public com.fasterxml.jackson.core.JsonParser _createParser(java.io.Reader r, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException- Overrides:
_createParserin classcom.fasterxml.jackson.core.JsonFactory- Throws:
java.io.IOException
-
_createParser
public com.fasterxml.jackson.core.JsonParser _createParser(byte[] data, int offset, int len, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException- Overrides:
_createParserin classcom.fasterxml.jackson.core.JsonFactory- Throws:
java.io.IOException
-
_createParser
protected com.fasterxml.jackson.core.JsonParser _createParser(char[] data, int offset, int len, com.fasterxml.jackson.core.io.IOContext ctxt, boolean recyclable) throws java.io.IOException- Overrides:
_createParserin classcom.fasterxml.jackson.core.JsonFactory- Throws:
java.io.IOException
-
_createGenerator
protected com.fasterxml.jackson.core.JsonGenerator _createGenerator(java.io.Writer out, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException- Overrides:
_createGeneratorin classcom.fasterxml.jackson.core.JsonFactory- Throws:
java.io.IOException
-
_createUTF8Generator
protected com.fasterxml.jackson.core.JsonGenerator _createUTF8Generator(java.io.OutputStream out, com.fasterxml.jackson.core.io.IOContext ctxt) throws java.io.IOException- Overrides:
_createUTF8Generatorin classcom.fasterxml.jackson.core.JsonFactory- Throws:
java.io.IOException
-
parse
private com.fasterxml.jackson.databind.node.ObjectNode parse(com.fasterxml.jackson.core.io.IOContext ctxt, java.io.Reader r0) throws java.io.IOException- Throws:
java.io.IOException
-
-