com.fasterxml.jackson.databind.deser

Class DataFormatReaders



  • public class DataFormatReaders
    extends Object
    Alternative to DataFormatDetector that needs to be used when using data-binding.
    Since:
    2.1
    • Field Detail

      • DEFAULT_MAX_INPUT_LOOKAHEAD

        public static final int DEFAULT_MAX_INPUT_LOOKAHEAD
        By default we will look ahead at most 64 bytes; in most cases, much less (4 bytes or so) is needed, but we will allow bit more leniency to support data formats that need more complex heuristics.
        See Also:
        Constant Field Values
      • _readers

        protected final ObjectReader[] _readers
        Ordered list of readers which both represent data formats to detect (in precedence order, starting with highest) and contain factories used for actual detection.
      • _optimalMatch

        protected final MatchStrength _optimalMatch
        Strength of match we consider to be good enough to be used without checking any other formats. Default value is MatchStrength.SOLID_MATCH,
      • _minimalMatch

        protected final MatchStrength _minimalMatch
        Strength of minimal match we accept as the answer, unless better matches are found. Default value is MatchStrength.WEAK_MATCH,
      • _maxInputLookahead

        protected final int _maxInputLookahead
        Maximum number of leading bytes of the input that we can read to determine data format.

        Default value is DEFAULT_MAX_INPUT_LOOKAHEAD.

Copyright © 2008–2015 FasterXML. All rights reserved.