java.lang.Object
tools.jackson.core.JsonParser
tools.jackson.core.base.ParserMinimalBase
tools.jackson.dataformat.csv.CsvParser
All Implemented Interfaces:
Closeable, AutoCloseable, tools.jackson.core.Versioned

public class CsvParser extends tools.jackson.core.base.ParserMinimalBase
JsonParser implementation used to expose CSV documents in form that allows other Jackson functionality to deal with it.

Implementation is based on a state-machine that pulls information using CsvDecoder.

  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.core.JsonParser

    tools.jackson.core.JsonParser.NumberType, tools.jackson.core.JsonParser.NumberTypeFP
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected String
    Contents of the cell, to be split into distinct array values.
    protected int
    Pointer to the first character of the next array value to return.
    protected byte[]
    We will hold on to decoded binary data, for duration of current event, so that multiple calls to getBinaryValue(tools.jackson.core.Base64Variant) will not need to decode data more than once.
    protected tools.jackson.core.util.ByteArrayBuilder
     
    protected final boolean
     
    protected final boolean
     
    protected final boolean
     
    protected int
    Number of columns defined by schema.
    protected int
    Index of the column we are exposing
    protected String
    Name of column that we exposed most recently, accessible after JsonToken.PROPERTY_NAME as well as value tokens immediately following property name.
    protected String
    String value for the current column, if accessed.
    protected int
     
    protected String
     
    protected final CsvDecoder
    Thing that actually reads the CSV content
    protected CsvSchema
    Definition of columns being read.
    protected int
    Current logical state of the parser; one of STATE_ constants.
    protected tools.jackson.core.util.SimpleStreamReadContext
    Information about parser context, context in which the next token is to be parsed (root, array, object).
    protected final tools.jackson.core.util.TextBuffer
    Buffer that contains contents of all values after processing of doubled-quotes, escaped characters.
    private static final CsvSchema
     
    private static final int
     
    protected static final int
    State in which end marker is returned; either null (if no array wrapping), or JsonToken.END_ARRAY for wrapping.
    protected static final int
    Initial state before anything is read from document.
    protected static final int
    State in which a column value has been determined to be of an array type, and will need to be split into multiple values.
    protected static final int
    State in which we should expose name token for a "missing column" (for which placeholder `null` value is to be added as well); see CsvReadFeature.INSERT_NULLS_FOR_MISSING_COLUMNS for details.
    protected static final int
    State in which we should expose `null` value token as a value for "missing" column; see CsvReadFeature.INSERT_NULLS_FOR_MISSING_COLUMNS for details.
    protected static final int
    State in which value matching property name will be returned.
    protected static final int
    State in which next entry will be available, returning either JsonToken.PROPERTY_NAME or value (depending on whether entries are expressed as Objects or just Arrays); or matching close marker.
    protected static final int
    State before logical start of a record, in which next token to return will be JsonToken.START_OBJECT (or if no Schema is provided, JsonToken.START_ARRAY).
    protected static final int
    State in which we have encountered more column values than there should be, and need to basically skip extra values if callers tries to advance parser state.
    protected static final int
    State in which "unnamed" value (entry in an array) will be returned, if one available; otherwise end-array is returned.
    protected static final tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability>
    CSV is slightly different from defaults, having essentially untyped scalars except if indicated by schema

    Fields inherited from class tools.jackson.core.base.ParserMinimalBase

    _closed, _currToken, _ioContext, _lastClearedToken, _objectReadContext, _streamReadConstraints, _streamReadFeatures, _tokenCount, _trackMaxTokenCount, BD_MAX_INT, BD_MAX_LONG, BD_MIN_INT, BD_MIN_LONG, BI_MAX_INT, BI_MAX_LONG, BI_MIN_INT, BI_MIN_LONG, CHAR_NULL, INT_0, INT_9, INT_APOS, INT_ASTERISK, INT_BACKSLASH, INT_COLON, INT_COMMA, INT_CR, INT_e, INT_E, INT_HASH, INT_LBRACKET, INT_LCURLY, INT_LF, INT_MINUS, INT_PERIOD, INT_PLUS, INT_QUOTE, INT_RBRACKET, INT_RCURLY, INT_RS, INT_SLASH, INT_SPACE, INT_TAB, MAX_BYTE_I, MAX_INT_D, MAX_INT_L, MAX_LONG_D, MAX_SHORT_I, MIN_BYTE_I, MIN_INT_D, MIN_INT_L, MIN_LONG_D, MIN_SHORT_I, NO_BYTES, NO_INTS, NR_BIGDECIMAL, NR_BIGINT, NR_DOUBLE, NR_FLOAT, NR_INT, NR_LONG, NR_UNKNOWN, STREAM_READ_FEATURE_DEFAULTS

    Fields inherited from class tools.jackson.core.JsonParser

    DEFAULT_READ_CAPABILITIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    CsvParser(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.io.IOContext ioCtxt, int stdFeatures, int csvFeatures, CsvSchema schema, Reader reader)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    tools.jackson.core.util.ByteArrayBuilder
     
    protected tools.jackson.core.JsonToken
     
    protected void
     
    protected tools.jackson.core.JsonToken
    Helper method called when an extraneous column value is found.
    protected tools.jackson.core.JsonToken
    Helper method called when end of row occurs before finding values for all schema-specified columns.
    protected tools.jackson.core.JsonToken
     
    protected tools.jackson.core.JsonToken
     
    protected tools.jackson.core.JsonToken
     
    protected tools.jackson.core.JsonToken
     
    protected final tools.jackson.core.JsonToken
    Helper method called to handle details of state update when end of logical record occurs.
    protected tools.jackson.core.JsonToken
     
    protected tools.jackson.core.JsonToken
    Method called to handle details of initializing things to return the very first token.
    protected tools.jackson.core.JsonToken
     
    protected boolean
    Helper method called to check whether specified String value should be considered "null" value, if so configured.
    protected void
    Method called to process the expected header line
    protected void
     
    <T> T
    Method called when there is a problem related to mapping CSV columns to property names, i.e.
    <T> T
     
    protected <T> T
     
    <T> T
     
    protected void
     
    protected final tools.jackson.core.JsonToken
     
    protected void
     
    protected void
     
    tools.jackson.core.JacksonException
     
    void
     
    boolean
     
    boolean
     
    tools.jackson.core.TokenStreamLocation
     
     
    tools.jackson.core.TokenStreamLocation
     
     
     
    byte[]
    getBinaryValue(tools.jackson.core.Base64Variant variant)
     
     
    double
     
     
    float
     
    int
     
    long
     
    tools.jackson.core.JsonParser.NumberType
     
     
     
    Accessor for getting active schema definition: it may be "empty" (no column definitions), but will never be null since it defaults to an empty schema (and default configuration)
     
    int
     
    char[]
     
    int
     
    int
     
    boolean
     
    boolean
    Method for checking whether specified CSV CsvReadFeature is enabled.
    boolean
     
    boolean
    We need to override this method to support coercion from basic String value into array, in cases where schema does not specify actual type.
    boolean
     
     
    boolean
    nextName(tools.jackson.core.SerializableString str)
     
     
    tools.jackson.core.JsonToken
     
    int
     
    tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability>
     
    tools.jackson.core.TokenStreamContext
     
     
    tools.jackson.core.Version
     

    Methods inherited from class tools.jackson.core.base.ParserMinimalBase

    _constructInputCoercion, _constructNotNumericType, _currentLocationMinusOne, _decodeBase64, _getCharDesc, _hasTextualNull, _longIntegerDesc, _longNumberDesc, _nullSafeUpdateToken, _reportBadInputStream, _reportBadReader, _reportError, _reportError, _reportError, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportInvalidNumber, _reportInvalidSpace, _reportInvalidUTF8Surrogate, _reportMissingRootWS, _reportOverflowByte, _reportOverflowInt, _reportOverflowInt, _reportOverflowInt, _reportOverflowLong, _reportOverflowLong, _reportOverflowLong, _reportOverflowShort, _reportUnexpectedChar, _reportUnexpectedNumberChar, _throwInternal, _updateToken, _updateTokenToNA, _updateTokenToNull, clearCurrentToken, close, currentNameMatch, currentToken, currentTokenCount, currentTokenId, finishToken, getBooleanValue, getByteValue, getLastClearedToken, getNumberTypeFP, getNumberValueDeferred, getShortValue, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasToken, hasTokenId, isClosed, isEnabled, isExpectedStartObjectToken, nextNameMatch, nextValue, objectReadContext, readValueAs, readValueAs, readValueAs, readValueAsTree, skipChildren, streamReadConstraints, streamReadFeatures

    Methods inherited from class tools.jackson.core.JsonParser

    _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _reportUnsupportedOperation, canParseAsync, getBinaryValue, getObjectId, getText, getTextCharacters, getTextLength, getTextOffset, getTypeId, getValueAsBoolean, getValueAsDouble, nextBooleanValue, nextIntValue, nextLongValue, nonBlockingInputFeeder, readBinaryValue, readBinaryValue, readString, releaseBuffered

    Methods inherited from class java.lang.Object

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

    • MAX_COLUMNS

      private static final int MAX_COLUMNS
      See Also:
    • EMPTY_SCHEMA

      private static final CsvSchema EMPTY_SCHEMA
    • STREAM_READ_CAPABILITIES

      protected static final tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability> STREAM_READ_CAPABILITIES
      CSV is slightly different from defaults, having essentially untyped scalars except if indicated by schema
      Since:
      2.12
    • STATE_DOC_START

      protected static final int STATE_DOC_START
      Initial state before anything is read from document.
      See Also:
    • STATE_RECORD_START

      protected static final int STATE_RECORD_START
      State before logical start of a record, in which next token to return will be JsonToken.START_OBJECT (or if no Schema is provided, JsonToken.START_ARRAY).
      See Also:
    • STATE_NEXT_ENTRY

      protected static final int STATE_NEXT_ENTRY
      State in which next entry will be available, returning either JsonToken.PROPERTY_NAME or value (depending on whether entries are expressed as Objects or just Arrays); or matching close marker.
      See Also:
    • STATE_NAMED_VALUE

      protected static final int STATE_NAMED_VALUE
      State in which value matching property name will be returned.
      See Also:
    • STATE_UNNAMED_VALUE

      protected static final int STATE_UNNAMED_VALUE
      State in which "unnamed" value (entry in an array) will be returned, if one available; otherwise end-array is returned.
      See Also:
    • STATE_IN_ARRAY

      protected static final int STATE_IN_ARRAY
      State in which a column value has been determined to be of an array type, and will need to be split into multiple values. This can currently only occur for named values.
      See Also:
    • STATE_SKIP_EXTRA_COLUMNS

      protected static final int STATE_SKIP_EXTRA_COLUMNS
      State in which we have encountered more column values than there should be, and need to basically skip extra values if callers tries to advance parser state.
      See Also:
    • STATE_MISSING_NAME

      protected static final int STATE_MISSING_NAME
      State in which we should expose name token for a "missing column" (for which placeholder `null` value is to be added as well); see CsvReadFeature.INSERT_NULLS_FOR_MISSING_COLUMNS for details.
      See Also:
    • STATE_MISSING_VALUE

      protected static final int STATE_MISSING_VALUE
      State in which we should expose `null` value token as a value for "missing" column; see CsvReadFeature.INSERT_NULLS_FOR_MISSING_COLUMNS for details.
      See Also:
    • STATE_DOC_END

      protected static final int STATE_DOC_END
      State in which end marker is returned; either null (if no array wrapping), or JsonToken.END_ARRAY for wrapping. This step will loop, returning series of nulls if nextToken() is called multiple times.
      See Also:
    • _formatFeatures

      protected int _formatFeatures
    • _schema

      protected CsvSchema _schema
      Definition of columns being read.
    • _columnCount

      protected int _columnCount
      Number of columns defined by schema.
    • _cfgEmptyStringAsNull

      protected final boolean _cfgEmptyStringAsNull
    • _cfgEmptyUnquotedStringAsNull

      protected final boolean _cfgEmptyUnquotedStringAsNull
      Since:
      2.18
    • _cfgOnlyUnquotedNullValuesAsNull

      protected final boolean _cfgOnlyUnquotedNullValuesAsNull
      Since:
      3.1
    • _streamReadContext

      protected tools.jackson.core.util.SimpleStreamReadContext _streamReadContext
      Information about parser context, context in which the next token is to be parsed (root, array, object).
    • _currentName

      protected String _currentName
      Name of column that we exposed most recently, accessible after JsonToken.PROPERTY_NAME as well as value tokens immediately following property name.
    • _currentValue

      protected String _currentValue
      String value for the current column, if accessed.
    • _columnIndex

      protected int _columnIndex
      Index of the column we are exposing
    • _state

      protected int _state
      Current logical state of the parser; one of STATE_ constants.
    • _binaryValue

      protected byte[] _binaryValue
      We will hold on to decoded binary data, for duration of current event, so that multiple calls to getBinaryValue(tools.jackson.core.Base64Variant) will not need to decode data more than once.
    • _arrayValueStart

      protected int _arrayValueStart
      Pointer to the first character of the next array value to return.
    • _arrayValue

      protected String _arrayValue
      Contents of the cell, to be split into distinct array values.
    • _arraySeparator

      protected String _arraySeparator
    • _nullValue

      protected String _nullValue
    • _reader

      protected final CsvDecoder _reader
      Thing that actually reads the CSV content
    • _textBuffer

      protected final tools.jackson.core.util.TextBuffer _textBuffer
      Buffer that contains contents of all values after processing of doubled-quotes, escaped characters.
    • _byteArrayBuilder

      protected tools.jackson.core.util.ByteArrayBuilder _byteArrayBuilder
  • Constructor Details

    • CsvParser

      public CsvParser(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.io.IOContext ioCtxt, int stdFeatures, int csvFeatures, CsvSchema schema, Reader reader)
  • Method Details

    • version

      public tools.jackson.core.Version version()
      Specified by:
      version in interface tools.jackson.core.Versioned
      Specified by:
      version in class tools.jackson.core.JsonParser
    • canReadObjectId

      public boolean canReadObjectId()
      Overrides:
      canReadObjectId in class tools.jackson.core.JsonParser
    • canReadTypeId

      public boolean canReadTypeId()
      Overrides:
      canReadTypeId in class tools.jackson.core.JsonParser
    • streamReadCapabilities

      public tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability> streamReadCapabilities()
      Overrides:
      streamReadCapabilities in class tools.jackson.core.base.ParserMinimalBase
    • releaseBuffered

      public int releaseBuffered(Writer out)
      Overrides:
      releaseBuffered in class tools.jackson.core.JsonParser
    • _closeInput

      protected void _closeInput() throws IOException
      Specified by:
      _closeInput in class tools.jackson.core.base.ParserMinimalBase
      Throws:
      IOException
    • _releaseBuffers

      protected void _releaseBuffers()
      Specified by:
      _releaseBuffers in class tools.jackson.core.base.ParserMinimalBase
    • isEnabled

      public boolean isEnabled(CsvReadFeature f)
      Method for checking whether specified CSV CsvReadFeature is enabled.
    • getSchema

      public CsvSchema getSchema()
      Accessor for getting active schema definition: it may be "empty" (no column definitions), but will never be null since it defaults to an empty schema (and default configuration)
      Overrides:
      getSchema in class tools.jackson.core.JsonParser
    • streamReadContext

      public tools.jackson.core.TokenStreamContext streamReadContext()
      Specified by:
      streamReadContext in class tools.jackson.core.JsonParser
    • assignCurrentValue

      public void assignCurrentValue(Object v)
      Specified by:
      assignCurrentValue in class tools.jackson.core.JsonParser
    • currentValue

      public Object currentValue()
      Specified by:
      currentValue in class tools.jackson.core.JsonParser
    • currentTokenLocation

      public tools.jackson.core.TokenStreamLocation currentTokenLocation()
      Specified by:
      currentTokenLocation in class tools.jackson.core.JsonParser
    • currentLocation

      public tools.jackson.core.TokenStreamLocation currentLocation()
      Specified by:
      currentLocation in class tools.jackson.core.JsonParser
    • streamReadInputSource

      public Object streamReadInputSource()
      Specified by:
      streamReadInputSource in class tools.jackson.core.JsonParser
    • isExpectedStartArrayToken

      public boolean isExpectedStartArrayToken()
      We need to override this method to support coercion from basic String value into array, in cases where schema does not specify actual type.
      Overrides:
      isExpectedStartArrayToken in class tools.jackson.core.base.ParserMinimalBase
    • isExpectedNumberIntToken

      public boolean isExpectedNumberIntToken()
      Overrides:
      isExpectedNumberIntToken in class tools.jackson.core.base.ParserMinimalBase
    • currentName

      public String currentName()
      Specified by:
      currentName in class tools.jackson.core.JsonParser
    • nextToken

      public tools.jackson.core.JsonToken nextToken() throws tools.jackson.core.JacksonException
      Specified by:
      nextToken in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • nextName

      public boolean nextName(tools.jackson.core.SerializableString str) throws tools.jackson.core.JacksonException
      Overrides:
      nextName in class tools.jackson.core.base.ParserMinimalBase
      Throws:
      tools.jackson.core.JacksonException
    • nextName

      public String nextName() throws tools.jackson.core.JacksonException
      Overrides:
      nextName in class tools.jackson.core.base.ParserMinimalBase
      Throws:
      tools.jackson.core.JacksonException
    • nextStringValue

      public String nextStringValue() throws tools.jackson.core.JacksonException
      Overrides:
      nextStringValue in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • _readHeaderLine

      protected void _readHeaderLine() throws tools.jackson.core.JacksonException
      Method called to process the expected header line
      Throws:
      tools.jackson.core.JacksonException
    • _handleStartDoc

      protected tools.jackson.core.JsonToken _handleStartDoc() throws tools.jackson.core.JacksonException
      Method called to handle details of initializing things to return the very first token.
      Throws:
      tools.jackson.core.JacksonException
    • _handleRecordStart

      protected tools.jackson.core.JsonToken _handleRecordStart() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _handleNextEntry

      protected tools.jackson.core.JsonToken _handleNextEntry() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _handleNamedValue

      protected tools.jackson.core.JsonToken _handleNamedValue() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _handleUnnamedValue

      protected tools.jackson.core.JsonToken _handleUnnamedValue() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _handleArrayValue

      protected tools.jackson.core.JsonToken _handleArrayValue() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _handleExtraColumn

      protected tools.jackson.core.JsonToken _handleExtraColumn(String value) throws tools.jackson.core.JacksonException
      Helper method called when an extraneous column value is found. What happens then depends on configuration, but there are three main choices: ignore value (and rest of line); expose extra value as "any property" using configured name, or throw an exception.
      Throws:
      tools.jackson.core.JacksonException
    • _handleMissingColumns

      protected tools.jackson.core.JsonToken _handleMissingColumns() throws tools.jackson.core.JacksonException
      Helper method called when end of row occurs before finding values for all schema-specified columns.
      Throws:
      tools.jackson.core.JacksonException
    • _handleMissingName

      protected tools.jackson.core.JsonToken _handleMissingName() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _handleMissingValue

      protected tools.jackson.core.JsonToken _handleMissingValue() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _handleObjectRowEnd

      protected final tools.jackson.core.JsonToken _handleObjectRowEnd() throws tools.jackson.core.JacksonException
      Helper method called to handle details of state update when end of logical record occurs.
      Throws:
      tools.jackson.core.JacksonException
    • _skipUntilEndOfLine

      protected final tools.jackson.core.JsonToken _skipUntilEndOfLine() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • hasStringCharacters

      public boolean hasStringCharacters()
      Specified by:
      hasStringCharacters in class tools.jackson.core.JsonParser
    • getString

      public String getString() throws tools.jackson.core.JacksonException
      Specified by:
      getString in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • getStringCharacters

      public char[] getStringCharacters() throws tools.jackson.core.JacksonException
      Specified by:
      getStringCharacters in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • getStringLength

      public int getStringLength() throws tools.jackson.core.JacksonException
      Specified by:
      getStringLength in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • getStringOffset

      public int getStringOffset() throws tools.jackson.core.JacksonException
      Specified by:
      getStringOffset in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • getString

      public int getString(Writer w) throws tools.jackson.core.JacksonException
      Overrides:
      getString in class tools.jackson.core.base.ParserMinimalBase
      Throws:
      tools.jackson.core.JacksonException
    • getEmbeddedObject

      public Object getEmbeddedObject() throws tools.jackson.core.JacksonException
      Overrides:
      getEmbeddedObject in class tools.jackson.core.base.ParserMinimalBase
      Throws:
      tools.jackson.core.JacksonException
    • getBinaryValue

      public byte[] getBinaryValue(tools.jackson.core.Base64Variant variant) throws tools.jackson.core.JacksonException
      Specified by:
      getBinaryValue in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • getNumberType

      public tools.jackson.core.JsonParser.NumberType getNumberType() throws tools.jackson.core.JacksonException
      Specified by:
      getNumberType in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • getNumberValue

      public Number getNumberValue() throws tools.jackson.core.JacksonException
      Specified by:
      getNumberValue in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • getNumberValueExact

      public Number getNumberValueExact() throws tools.jackson.core.JacksonException
      Overrides:
      getNumberValueExact in class tools.jackson.core.base.ParserMinimalBase
      Throws:
      tools.jackson.core.JacksonException
    • getIntValue

      public int getIntValue() throws tools.jackson.core.JacksonException
      Specified by:
      getIntValue in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • getLongValue

      public long getLongValue() throws tools.jackson.core.JacksonException
      Specified by:
      getLongValue in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • getBigIntegerValue

      public BigInteger getBigIntegerValue() throws tools.jackson.core.JacksonException
      Specified by:
      getBigIntegerValue in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • getFloatValue

      public float getFloatValue() throws tools.jackson.core.JacksonException
      Specified by:
      getFloatValue in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • getDoubleValue

      public double getDoubleValue() throws tools.jackson.core.JacksonException
      Specified by:
      getDoubleValue in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • getDecimalValue

      public BigDecimal getDecimalValue() throws tools.jackson.core.JacksonException
      Specified by:
      getDecimalValue in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • isNaN

      public boolean isNaN()
      Specified by:
      isNaN in class tools.jackson.core.JsonParser
    • _handleEOF

      protected void _handleEOF() throws tools.jackson.core.exc.StreamReadException
      Specified by:
      _handleEOF in class tools.jackson.core.base.ParserMinimalBase
      Throws:
      tools.jackson.core.exc.StreamReadException
    • _reportCsvReadError

      public <T> T _reportCsvReadError(String msg, Object... args) throws tools.jackson.core.JacksonException
      Method called when there is a problem related to mapping CSV columns to property names, i.e. is CSV-specific aspect
      Throws:
      tools.jackson.core.JacksonException
    • _reportUnexpectedCsvChar

      public <T> T _reportUnexpectedCsvChar(int ch, String msg) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _reportError

      public <T> T _reportError(String msg) throws tools.jackson.core.exc.StreamReadException
      Overrides:
      _reportError in class tools.jackson.core.base.ParserMinimalBase
      Throws:
      tools.jackson.core.exc.StreamReadException
    • _wrapIOFailure

      public tools.jackson.core.JacksonException _wrapIOFailure(IOException e)
      Overrides:
      _wrapIOFailure in class tools.jackson.core.base.ParserMinimalBase
    • _verifyNumberToken

      protected void _verifyNumberToken() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _reportNotNumericError

      protected <T> T _reportNotNumericError() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _setSchema

      protected void _setSchema(CsvSchema schema)
    • _getByteArrayBuilder

      public tools.jackson.core.util.ByteArrayBuilder _getByteArrayBuilder()
    • _startArray

      protected void _startArray(CsvSchema.Column column)
    • _isNullValue

      protected boolean _isNullValue(String value)
      Helper method called to check whether specified String value should be considered "null" value, if so configured.
      Since:
      2.17.1