public final class TomlFactory
extends com.fasterxml.jackson.core.JsonFactory
Modifier and Type | Field and Description |
---|---|
protected int |
_tomlGeneratorFeatures |
protected int |
_tomlParserFeatures |
static String |
FORMAT_NAME_TOML |
_byteSymbolCanonicalizer, _characterEscapes, _factoryFeatures, _generatorFeatures, _inputDecorator, _maximumNonEscapedChar, _objectCodec, _outputDecorator, _parserFeatures, _quoteChar, _rootCharSymbols, _rootValueSeparator, DEFAULT_FACTORY_FEATURE_FLAGS, DEFAULT_GENERATOR_FEATURE_FLAGS, DEFAULT_PARSER_FEATURE_FLAGS, DEFAULT_QUOTE_CHAR, DEFAULT_ROOT_VALUE_SEPARATOR, FORMAT_NAME_JSON
Constructor and Description |
---|
TomlFactory() |
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.core.JsonGenerator |
_createGenerator(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(InputStream in,
com.fasterxml.jackson.core.io.IOContext ctxt) |
com.fasterxml.jackson.core.JsonParser |
_createParser(Reader r,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected com.fasterxml.jackson.core.JsonGenerator |
_createUTF8Generator(OutputStream out,
com.fasterxml.jackson.core.io.IOContext ctxt) |
static TomlFactoryBuilder |
builder()
Main factory method to use for constructing
TomlFactory instances with
different configuration. |
boolean |
canParseAsync() |
boolean |
canUseCharArrays() |
boolean |
canUseSchema(com.fasterxml.jackson.core.FormatSchema schema) |
TomlFactory |
configure(TomlReadFeature f,
boolean state)
Method for enabling or disabling specified parser feature
(check
TomlReadFeature for list of features) |
TomlFactory |
configure(TomlWriteFeature f,
boolean state)
Method for enabling or disabling specified generator feature
(check
TomlWriteFeature for list of features) |
TomlFactory |
copy() |
TomlFactory |
disable(TomlReadFeature f)
Method for disabling specified parser features
(check
TomlReadFeature for list of features) |
TomlFactory |
disable(TomlWriteFeature f)
Method for disabling specified generator features
(check
TomlWriteFeature for list of features) |
TomlFactory |
enable(TomlReadFeature f)
Method for enabling specified parser feature
(check
TomlReadFeature for list of features) |
TomlFactory |
enable(TomlWriteFeature f)
Method for enabling specified generator feature
(check
TomlWriteFeature for list of features) |
int |
getFormatGeneratorFeatures() |
String |
getFormatName() |
int |
getFormatParserFeatures() |
Class<? extends com.fasterxml.jackson.core.FormatFeature> |
getFormatReadFeatureType() |
Class<? extends com.fasterxml.jackson.core.FormatFeature> |
getFormatWriteFeatureType() |
com.fasterxml.jackson.core.format.MatchStrength |
hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc) |
boolean |
isEnabled(TomlReadFeature f)
Checked whether specified parser feature is enabled.
|
boolean |
isEnabled(TomlWriteFeature f)
Checked whether specified generator feature is enabled.
|
TomlFactoryBuilder |
rebuild() |
boolean |
requiresPropertyOrdering() |
com.fasterxml.jackson.core.Version |
version() |
_checkInvalidCopy, _createContentReference, _createContentReference, _createContext, _createContext, _createNonBlockingContext, _createParser, _createWriter, _decorate, _decorate, _decorate, _decorate, _decorate, _getBufferRecycler, canHandleBinaryNatively, configure, configure, configure, createGenerator, createGenerator, createGenerator, createGenerator, createGenerator, createGenerator, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createNonBlockingByteArrayParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, disable, disable, disable, enable, enable, enable, getCharacterEscapes, getCodec, getGeneratorFeatures, getInputDecorator, getOutputDecorator, getParserFeatures, getRootValueSeparator, hasJSONFormat, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, readResolve, requiresCustomCodec, setCharacterEscapes, setCodec, setInputDecorator, setOutputDecorator, setRootValueSeparator
public static final String FORMAT_NAME_TOML
protected int _tomlParserFeatures
protected int _tomlGeneratorFeatures
public TomlFactoryBuilder rebuild()
rebuild
in class com.fasterxml.jackson.core.JsonFactory
public static TomlFactoryBuilder builder()
TomlFactory
instances with
different configuration.public TomlFactory copy()
copy
in class com.fasterxml.jackson.core.JsonFactory
public com.fasterxml.jackson.core.Version version()
version
in interface com.fasterxml.jackson.core.Versioned
version
in class com.fasterxml.jackson.core.JsonFactory
public boolean requiresPropertyOrdering()
requiresPropertyOrdering
in class com.fasterxml.jackson.core.JsonFactory
public boolean canUseCharArrays()
canUseCharArrays
in class com.fasterxml.jackson.core.JsonFactory
public boolean canParseAsync()
canParseAsync
in class com.fasterxml.jackson.core.JsonFactory
public String getFormatName()
getFormatName
in class com.fasterxml.jackson.core.JsonFactory
public boolean canUseSchema(com.fasterxml.jackson.core.FormatSchema schema)
canUseSchema
in class com.fasterxml.jackson.core.JsonFactory
public Class<? extends com.fasterxml.jackson.core.FormatFeature> getFormatReadFeatureType()
getFormatReadFeatureType
in class com.fasterxml.jackson.core.JsonFactory
public Class<? extends com.fasterxml.jackson.core.FormatFeature> getFormatWriteFeatureType()
getFormatWriteFeatureType
in class com.fasterxml.jackson.core.JsonFactory
public com.fasterxml.jackson.core.format.MatchStrength hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc) throws IOException
hasFormat
in class com.fasterxml.jackson.core.JsonFactory
IOException
public final TomlFactory configure(TomlReadFeature f, boolean state)
TomlReadFeature
for list of features)public TomlFactory enable(TomlReadFeature f)
TomlReadFeature
for list of features)public TomlFactory disable(TomlReadFeature f)
TomlReadFeature
for list of features)public final boolean isEnabled(TomlReadFeature f)
public int getFormatParserFeatures()
getFormatParserFeatures
in class com.fasterxml.jackson.core.JsonFactory
public final TomlFactory configure(TomlWriteFeature f, boolean state)
TomlWriteFeature
for list of features)public TomlFactory enable(TomlWriteFeature f)
TomlWriteFeature
for list of features)public TomlFactory disable(TomlWriteFeature f)
TomlWriteFeature
for list of features)public final boolean isEnabled(TomlWriteFeature f)
public int getFormatGeneratorFeatures()
getFormatGeneratorFeatures
in class com.fasterxml.jackson.core.JsonFactory
public com.fasterxml.jackson.core.JsonParser _createParser(InputStream in, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createParser
in class com.fasterxml.jackson.core.JsonFactory
IOException
public com.fasterxml.jackson.core.JsonParser _createParser(Reader r, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createParser
in class com.fasterxml.jackson.core.JsonFactory
IOException
public com.fasterxml.jackson.core.JsonParser _createParser(byte[] data, int offset, int len, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createParser
in class com.fasterxml.jackson.core.JsonFactory
IOException
protected com.fasterxml.jackson.core.JsonParser _createParser(char[] data, int offset, int len, com.fasterxml.jackson.core.io.IOContext ctxt, boolean recyclable) throws IOException
_createParser
in class com.fasterxml.jackson.core.JsonFactory
IOException
protected com.fasterxml.jackson.core.JsonGenerator _createGenerator(Writer out, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createGenerator
in class com.fasterxml.jackson.core.JsonFactory
IOException
protected com.fasterxml.jackson.core.JsonGenerator _createUTF8Generator(OutputStream out, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createUTF8Generator
in class com.fasterxml.jackson.core.JsonFactory
IOException
Copyright © 2021 FasterXML. All rights reserved.