com.fasterxml.jackson.core.json

Class JsonParserBase

    • Field Detail

      • FEAT_MASK_TRAILING_COMMA

        protected static final int FEAT_MASK_TRAILING_COMMA
      • FEAT_MASK_LEADING_ZEROS

        protected static final int FEAT_MASK_LEADING_ZEROS
      • FEAT_MASK_NON_NUM_NUMBERS

        protected static final int FEAT_MASK_NON_NUM_NUMBERS
      • FEAT_MASK_ALLOW_MISSING

        protected static final int FEAT_MASK_ALLOW_MISSING
      • FEAT_MASK_ALLOW_SINGLE_QUOTES

        protected static final int FEAT_MASK_ALLOW_SINGLE_QUOTES
      • FEAT_MASK_ALLOW_UNQUOTED_NAMES

        protected static final int FEAT_MASK_ALLOW_UNQUOTED_NAMES
      • FEAT_MASK_ALLOW_JAVA_COMMENTS

        protected static final int FEAT_MASK_ALLOW_JAVA_COMMENTS
      • FEAT_MASK_ALLOW_YAML_COMMENTS

        protected static final int FEAT_MASK_ALLOW_YAML_COMMENTS
      • INPUT_CODES_LATIN1

        protected static final int[] INPUT_CODES_LATIN1
      • INPUT_CODES_UTF8

        protected static final int[] INPUT_CODES_UTF8
      • _objectCodec

        protected ObjectCodec _objectCodec
        Codec used for data binding when (if) requested; typically full ObjectMapper, but that abstract is not part of core package.
    • Constructor Detail

    • Method Detail

      • getReadCapabilities

        public final JacksonFeatureSet<StreamReadCapability> getReadCapabilities()
        Description copied from class: JsonParser
        Accessor for getting metadata on capabilities of this parser, based on underlying data format being read (directly or indirectly).
        Overrides:
        getReadCapabilities in class JsonParser
        Returns:
        Set of read capabilities for content to read via this parser
      • currentLocation

        public abstract JsonLocation currentLocation()
        Description copied from class: JsonParser
        Method that returns location of the last processed input unit (character or byte) from the input; usually for error reporting purposes.

        Note that the location is not guaranteed to be accurate (although most implementation will try their best): some implementations may only report specific boundary locations (start or end locations of tokens) and others only return JsonLocation.NA due to not having access to input location information (when delegating actual decoding work to other library)

        Overrides:
        currentLocation in class JsonParser
        Returns:
        Location of the last processed input unit (byte or character)
      • currentTokenLocation

        public abstract JsonLocation currentTokenLocation()
        Description copied from class: JsonParser
        Method that return the starting location of the current (most recently returned) token; that is, the position of the first input unit (character or byte) from input that starts the current token.

        Note that the location is not guaranteed to be accurate (although most implementation will try their best): some implementations may only return JsonLocation.NA due to not having access to input location information (when delegating actual decoding work to other library)

        Overrides:
        currentTokenLocation in class JsonParser
        Returns:
        Starting location of the token parser currently points to
      • _currentLocationMinusOne

        protected abstract JsonLocation _currentLocationMinusOne()
        Description copied from class: ParserMinimalBase
        Factory method used to provide location for cases where we must read and consume a single "wrong" character (to possibly allow error recovery), but need to report accurate location for that character: if so, the current location is past location we want, and location we want will be "one location earlier".

        Default implementation simply returns JsonParser.currentLocation()

        Overrides:
        _currentLocationMinusOne in class ParserMinimalBase
        Returns:
        Same as JsonParser.currentLocation() except offset by -1
      • getCurrentLocation

        @Deprecated
        public final JsonLocation getCurrentLocation()
        Deprecated. 
        Description copied from class: ParserBase
        Method that returns location of the last processed character; usually for error reporting purposes
        Overrides:
        getCurrentLocation in class ParserBase
        Returns:
        Location of the last processed input unit (byte or character)
      • getTokenLocation

        @Deprecated
        public final JsonLocation getTokenLocation()
        Deprecated. 
        Description copied from class: ParserBase
        Method that return the starting location of the current token; that is, position of the first character from input that starts the current token.
        Overrides:
        getTokenLocation in class ParserBase
        Returns:
        Starting location of the token parser currently points to

Copyright © 2008–2024 FasterXML. All rights reserved.