Class 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
    • 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 _tomlGeneratorFeatures  
      protected int _tomlParserFeatures  
      (package private) static int DEFAULT_TOML_GENERATOR_FEATURE_FLAGS
      Bitfield (set of flags) of all generator features that are enabled by default.
      (package private) static int DEFAULT_TOML_PARSER_FEATURE_FLAGS
      Bitfield (set of flags) of all generator features that are enabled by default.
      static java.lang.String FORMAT_NAME_TOML  
      private static long serialVersionUID  
      • 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
    • 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 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()  
      java.lang.String getFormatName()  
      int getFormatParserFeatures()  
      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.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.
      private com.fasterxml.jackson.databind.node.ObjectNode parse​(com.fasterxml.jackson.core.io.IOContext ctxt, java.io.Reader r0)  
      TomlFactoryBuilder rebuild()  
      boolean requiresPropertyOrdering()  
      com.fasterxml.jackson.core.Version 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 java.lang.Object

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

      • 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)
    • Method Detail

      • 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 java.lang.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 java.lang.Class<? extends com.fasterxml.jackson.core.FormatFeature> getFormatReadFeatureType()
        Overrides:
        getFormatReadFeatureType in class com.fasterxml.jackson.core.JsonFactory
      • getFormatWriteFeatureType

        public java.lang.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 java.io.IOException
        Overrides:
        hasFormat in class com.fasterxml.jackson.core.JsonFactory
        Throws:
        java.io.IOException
      • 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
      • 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​(java.io.InputStream in,
                                                                   com.fasterxml.jackson.core.io.IOContext ctxt)
                                                            throws java.io.IOException
        Overrides:
        _createParser in class com.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:
        _createParser in class com.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:
        _createParser in class com.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:
        _createParser in class com.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:
        _createGenerator in class com.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:
        _createUTF8Generator in class com.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