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, Serializable

public final class TomlFactory extends com.fasterxml.jackson.core.JsonFactory
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.core.JsonFactory

    com.fasterxml.jackson.core.JsonFactory.Feature
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     
    protected int
     
    static final String
     

    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
     
  • Method Summary

    Modifier and Type
    Method
    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)
     
    Main factory method to use for constructing TomlFactory instances with different configuration.
    boolean
     
    boolean
     
    boolean
    canUseSchema(com.fasterxml.jackson.core.FormatSchema schema)
     
    configure(TomlReadFeature f, boolean state)
    Method for enabling or disabling specified parser feature (check TomlReadFeature for list of features)
    configure(TomlWriteFeature f, boolean state)
    Method for enabling or disabling specified generator feature (check TomlWriteFeature for list of features)
     
    Method for disabling specified parser features (check TomlReadFeature for list of features)
    Method for disabling specified generator features (check TomlWriteFeature for list of features)
    Method for enabling specified parser feature (check TomlReadFeature for list of features)
    Method for enabling specified generator feature (check TomlWriteFeature for list of features)
    int
     
     
    int
     
    Class<? extends com.fasterxml.jackson.core.FormatFeature>
     
    Class<? extends com.fasterxml.jackson.core.FormatFeature>
     
    com.fasterxml.jackson.core.format.MatchStrength
    hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)
     
    final boolean
    Checked whether specified parser feature is enabled.
    final boolean
    Checked whether specified generator feature is enabled.
     
    boolean
     
    com.fasterxml.jackson.core.Version
     

    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

    Methods inherited from class com.fasterxml.jackson.core.TokenStreamFactory

    _checkRangeBoundsForByteArray, _checkRangeBoundsForCharArray, _createDataOutputWrapper, _fileInputStream, _fileOutputStream, _optimizedStreamFromURL, _reportRangeError

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FORMAT_NAME_TOML

      public static final String FORMAT_NAME_TOML
      See Also:
    • _tomlParserFeatures

      protected int _tomlParserFeatures
    • _tomlGeneratorFeatures

      protected int _tomlGeneratorFeatures
  • Constructor Details

    • TomlFactory

      public TomlFactory()
  • Method Details

    • rebuild

      public TomlFactoryBuilder rebuild()
      Overrides:
      rebuild in class com.fasterxml.jackson.core.JsonFactory
    • builder

      public static TomlFactoryBuilder builder()
      Main factory method to use for constructing TomlFactory instances with different configuration.
    • copy

      public TomlFactory copy()
      Overrides:
      copy in class com.fasterxml.jackson.core.JsonFactory
    • version

      public com.fasterxml.jackson.core.Version version()
      Specified by:
      version in interface com.fasterxml.jackson.core.Versioned
      Overrides:
      version in class com.fasterxml.jackson.core.JsonFactory
    • requiresPropertyOrdering

      public boolean requiresPropertyOrdering()
      Overrides:
      requiresPropertyOrdering in class com.fasterxml.jackson.core.JsonFactory
    • canUseCharArrays

      public boolean canUseCharArrays()
      Overrides:
      canUseCharArrays in class com.fasterxml.jackson.core.JsonFactory
    • canParseAsync

      public boolean canParseAsync()
      Overrides:
      canParseAsync in class com.fasterxml.jackson.core.JsonFactory
    • getFormatName

      public String getFormatName()
      Overrides:
      getFormatName in class com.fasterxml.jackson.core.JsonFactory
    • canUseSchema

      public boolean canUseSchema(com.fasterxml.jackson.core.FormatSchema schema)
      Overrides:
      canUseSchema in class com.fasterxml.jackson.core.JsonFactory
    • getFormatReadFeatureType

      public Class<? extends com.fasterxml.jackson.core.FormatFeature> getFormatReadFeatureType()
      Overrides:
      getFormatReadFeatureType in class com.fasterxml.jackson.core.JsonFactory
    • getFormatWriteFeatureType

      public Class<? extends com.fasterxml.jackson.core.FormatFeature> getFormatWriteFeatureType()
      Overrides:
      getFormatWriteFeatureType in class com.fasterxml.jackson.core.JsonFactory
    • hasFormat

      public com.fasterxml.jackson.core.format.MatchStrength hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc) throws IOException
      Overrides:
      hasFormat in class com.fasterxml.jackson.core.JsonFactory
      Throws:
      IOException
    • configure

      public final TomlFactory configure(TomlReadFeature f, boolean state)
      Method for enabling or disabling specified parser feature (check TomlReadFeature for list of features)
    • enable

      public TomlFactory enable(TomlReadFeature f)
      Method for enabling specified parser feature (check TomlReadFeature for list of features)
    • disable

      public TomlFactory disable(TomlReadFeature f)
      Method for disabling specified parser features (check TomlReadFeature for list of features)
    • isEnabled

      public final boolean isEnabled(TomlReadFeature f)
      Checked whether specified parser feature is enabled.
    • getFormatParserFeatures

      public int getFormatParserFeatures()
      Overrides:
      getFormatParserFeatures in class com.fasterxml.jackson.core.JsonFactory
    • configure

      public final TomlFactory configure(TomlWriteFeature f, boolean state)
      Method for enabling or disabling specified generator feature (check TomlWriteFeature for list of features)
    • enable

      public TomlFactory enable(TomlWriteFeature f)
      Method for enabling specified generator feature (check TomlWriteFeature for list of features)
    • disable

      public TomlFactory disable(TomlWriteFeature f)
      Method for disabling specified generator features (check TomlWriteFeature for list of features)
    • isEnabled

      public final boolean isEnabled(TomlWriteFeature f)
      Checked whether specified generator feature is enabled.
    • getFormatGeneratorFeatures

      public int getFormatGeneratorFeatures()
      Overrides:
      getFormatGeneratorFeatures in class com.fasterxml.jackson.core.JsonFactory
    • _createParser

      public com.fasterxml.jackson.core.JsonParser _createParser(InputStream in, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
      Overrides:
      _createParser in class com.fasterxml.jackson.core.JsonFactory
      Throws:
      IOException
    • _createParser

      public com.fasterxml.jackson.core.JsonParser _createParser(Reader r, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
      Overrides:
      _createParser in class com.fasterxml.jackson.core.JsonFactory
      Throws:
      IOException
    • _createParser

      public com.fasterxml.jackson.core.JsonParser _createParser(byte[] data, int offset, int len, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
      Overrides:
      _createParser in class com.fasterxml.jackson.core.JsonFactory
      Throws:
      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 IOException
      Overrides:
      _createParser in class com.fasterxml.jackson.core.JsonFactory
      Throws:
      IOException
    • _createGenerator

      protected com.fasterxml.jackson.core.JsonGenerator _createGenerator(Writer out, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
      Overrides:
      _createGenerator in class com.fasterxml.jackson.core.JsonFactory
      Throws:
      IOException
    • _createUTF8Generator

      protected com.fasterxml.jackson.core.JsonGenerator _createUTF8Generator(OutputStream out, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
      Overrides:
      _createUTF8Generator in class com.fasterxml.jackson.core.JsonFactory
      Throws:
      IOException