Class JsonParserBase

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