Class CsvParser
java.lang.Object
com.fasterxml.jackson.core.JsonParser
com.fasterxml.jackson.core.base.ParserMinimalBase
com.fasterxml.jackson.dataformat.csv.CsvParser
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned, Closeable, AutoCloseable
public class CsvParser
extends com.fasterxml.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 ClassesModifier and TypeClassDescriptionstatic enumEnumeration that defines all togglable features for CSV parsersNested classes/interfaces inherited from class com.fasterxml.jackson.core.JsonParser
com.fasterxml.jackson.core.JsonParser.NumberType, com.fasterxml.jackson.core.JsonParser.NumberTypeFP -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected StringContents of the cell, to be split into distinct array values.protected intPointer 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 togetBinaryValue(Base64Variant)will not need to decode data more than once.protected com.fasterxml.jackson.core.util.ByteArrayBuilderprotected booleanprotected booleanprotected intNumber of columns defined by schema.protected intIndex of the column we are exposingprotected StringName of column that we exposed most recently, accessible afterJsonToken.FIELD_NAMEas well as value tokens immediately following field name.protected StringString value for the current column, if accessed.protected intprotected final com.fasterxml.jackson.core.io.IOContextprotected Stringprotected com.fasterxml.jackson.core.ObjectCodecCodec used for data binding when (if) requested.protected com.fasterxml.jackson.core.json.JsonReadContextInformation about parser context, context in which the next token is to be parsed (root, array, object).protected final CsvDecoderThing that actually reads the CSV contentprotected CsvSchemaDefinition of columns being read.protected intCurrent logical state of the parser; one ofSTATE_constants.protected final com.fasterxml.jackson.core.StreamReadConstraintsprotected final com.fasterxml.jackson.core.util.TextBufferBuffer that contains contents of all values after processing of doubled-quotes, escaped characters.private static final CsvSchemaprivate static final intprotected static final intState in which end marker is returned; either null (if no array wrapping), orJsonToken.END_ARRAYfor wrapping.protected static final intInitial state before anything is read from document.protected static final intState 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 intState in which we should expose name token for a "missing column" (for which placeholder `null` value is to be added as well); seeCsvParser.Feature.INSERT_NULLS_FOR_MISSING_COLUMNSfor details.protected static final intState in which we should expose `null` value token as a value for "missing" column; seeCsvParser.Feature.INSERT_NULLS_FOR_MISSING_COLUMNSfor details.protected static final intState in which value matching field name will be returned.protected static final intState in which next entry will be available, returning eitherJsonToken.FIELD_NAMEor value (depending on whether entries are expressed as Objects or just Arrays); or matching close marker.protected static final intState before logical start of a record, in which next token to return will beJsonToken.START_OBJECT(or if no Schema is provided,JsonToken.START_ARRAY).protected static final intState 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 intState in which "unnamed" value (entry in an array) will be returned, if one available; otherwise end-array is returned.protected static final com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamReadCapability> CSV is slightly different from defaults, having essentially untyped scalars except if indicated by schemaFields inherited from class com.fasterxml.jackson.core.base.ParserMinimalBase
_currToken, _lastClearedToken, 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_SLASH, INT_SPACE, INT_TAB, MAX_ERROR_TOKEN_LENGTH, MAX_INT_D, MAX_INT_L, MAX_LONG_D, MIN_INT_D, MIN_INT_L, MIN_LONG_D, NO_BYTES, NO_INTS, NR_BIGDECIMAL, NR_BIGINT, NR_DOUBLE, NR_FLOAT, NR_INT, NR_LONG, NR_UNKNOWNFields inherited from class com.fasterxml.jackson.core.JsonParser
_features, _requestPayload, DEFAULT_READ_CAPABILITIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.core.util.ByteArrayBuilderprotected com.fasterxml.jackson.core.JsonTokenprotected voidprotected com.fasterxml.jackson.core.JsonToken_handleExtraColumn(String value) Helper method called when an extraneous column value is found.protected com.fasterxml.jackson.core.JsonTokenHelper method called when end of row occurs before finding values for all schema-specified columns.protected com.fasterxml.jackson.core.JsonTokenprotected com.fasterxml.jackson.core.JsonTokenprotected com.fasterxml.jackson.core.JsonTokenprotected com.fasterxml.jackson.core.JsonTokenprotected final com.fasterxml.jackson.core.JsonTokenHelper method called to handle details of state update when end of logical record occurs.protected com.fasterxml.jackson.core.JsonTokenprotected com.fasterxml.jackson.core.JsonTokenMethod called to handle details of initializing things to return the very first token.protected com.fasterxml.jackson.core.JsonTokenprotected boolean_isNullValue(String value) Helper method called to check whether specified String value should be considered "null" value, if so configured.protected voidMethod called to process the expected header line<T> T_reportCsvMappingError(String msg, Object... args) Method called when there is a problem related to mapping data (compared to a low-level generation); if so, should be surfaced asvoidvoid_reportUnexpectedCsvChar(int ch, String msg) protected final com.fasterxml.jackson.core.JsonTokenprotected void_startArray(CsvSchema.Column column) booleanbooleanbooleancanUseSchema(com.fasterxml.jackson.core.FormatSchema schema) voidclose()com.fasterxml.jackson.core.JsonParserconfigure(CsvParser.Feature f, boolean state) Method for enabling or disabling specified CSV feature (checkCsvParser.Featurefor list of features)com.fasterxml.jackson.core.JsonLocationcom.fasterxml.jackson.core.JsonLocationcom.fasterxml.jackson.core.JsonParserMethod for disabling specified CSV feature (checkCsvParser.Featurefor list of features)com.fasterxml.jackson.core.JsonParserMethod for enabling specified CSV feature (checkCsvParser.Featurefor list of features)byte[]getBinaryValue(com.fasterxml.jackson.core.Base64Variant variant) com.fasterxml.jackson.core.ObjectCodecgetCodec()com.fasterxml.jackson.core.JsonLocationDeprecated.Deprecated.doublefloatintintlongcom.fasterxml.jackson.core.JsonParser.NumberTypecom.fasterxml.jackson.core.JsonParser.NumberTypeFPcom.fasterxml.jackson.core.JsonStreamContextcom.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamReadCapability> 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)getText()intchar[]intintcom.fasterxml.jackson.core.JsonLocationDeprecated.booleanbooleanisClosed()booleanMethod for checking whether specified CSVCsvParser.Featureis enabled.booleanbooleanWe need to override this method to support coercion from basic String value into array, in cases where schema does not specify actual type.booleannextFieldName(com.fasterxml.jackson.core.SerializableString str) com.fasterxml.jackson.core.JsonTokenvoidoverrideCurrentName(String name) com.fasterxml.jackson.core.JsonParseroverrideFormatFeatures(int values, int mask) intreleaseBuffered(Writer out) booleanvoidsetCodec(com.fasterxml.jackson.core.ObjectCodec c) voidsetSchema(com.fasterxml.jackson.core.FormatSchema schema) com.fasterxml.jackson.core.StreamReadConstraintscom.fasterxml.jackson.core.Versionversion()Methods inherited from class com.fasterxml.jackson.core.base.ParserMinimalBase
_ascii, _asciiBytes, _constructError, _currentLocationMinusOne, _decodeBase64, _getCharDesc, _hasTextualNull, _longIntegerDesc, _longNumberDesc, _reportError, _reportError, _reportError, _reportInputCoercion, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportMissingRootWS, _reportUnexpectedChar, _reportUnexpectedNumberChar, _throwInternal, _throwInternalReturnAny, _throwInvalidSpace, _wrapError, clearCurrentToken, currentToken, currentTokenId, getCurrentToken, getCurrentTokenId, getLastClearedToken, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasToken, hasTokenId, isExpectedStartObjectToken, nextValue, reportInvalidNumber, reportOverflowInt, reportOverflowInt, reportOverflowInt, reportOverflowLong, reportOverflowLong, reportOverflowLong, reportUnexpectedNumberChar, skipChildrenMethods inherited from class com.fasterxml.jackson.core.JsonParser
_codec, _constructError, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _reportUnsupportedOperation, assignCurrentValue, canParseAsync, configure, currentValue, disable, enable, finishToken, getBinaryValue, getBooleanValue, getByteValue, getCurrentValue, getFeatureMask, getNonBlockingInputFeeder, getNumberValueDeferred, getObjectId, getShortValue, getTypeId, getValueAsBoolean, getValueAsDouble, isEnabled, isEnabled, isNaN, nextBooleanValue, nextIntValue, nextLongValue, overrideStdFeatures, readBinaryValue, readBinaryValue, readValueAs, readValueAs, readValueAsTree, readValuesAs, readValuesAs, releaseBuffered, setCurrentValue, setFeatureMask, setRequestPayloadOnError, setRequestPayloadOnError, setRequestPayloadOnError
-
Field Details
-
MAX_COLUMNS
private static final int MAX_COLUMNS- See Also:
-
EMPTY_SCHEMA
-
STREAM_READ_CAPABILITIES
protected static final com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamReadCapability> STREAM_READ_CAPABILITIESCSV 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_STARTInitial state before anything is read from document.- See Also:
-
STATE_RECORD_START
protected static final int STATE_RECORD_STARTState before logical start of a record, in which next token to return will beJsonToken.START_OBJECT(or if no Schema is provided,JsonToken.START_ARRAY).- See Also:
-
STATE_NEXT_ENTRY
protected static final int STATE_NEXT_ENTRYState in which next entry will be available, returning eitherJsonToken.FIELD_NAMEor 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_VALUEState in which value matching field name will be returned.- See Also:
-
STATE_UNNAMED_VALUE
protected static final int STATE_UNNAMED_VALUEState 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_ARRAYState 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.- Since:
- 2.5
- See Also:
-
STATE_SKIP_EXTRA_COLUMNS
protected static final int STATE_SKIP_EXTRA_COLUMNSState 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.- Since:
- 2.6
- See Also:
-
STATE_MISSING_NAME
protected static final int STATE_MISSING_NAMEState in which we should expose name token for a "missing column" (for which placeholder `null` value is to be added as well); seeCsvParser.Feature.INSERT_NULLS_FOR_MISSING_COLUMNSfor details.- Since:
- 2.9
- See Also:
-
STATE_MISSING_VALUE
protected static final int STATE_MISSING_VALUEState in which we should expose `null` value token as a value for "missing" column; seeCsvParser.Feature.INSERT_NULLS_FOR_MISSING_COLUMNSfor details.- Since:
- 2.9
- See Also:
-
STATE_DOC_END
protected static final int STATE_DOC_ENDState in which end marker is returned; either null (if no array wrapping), orJsonToken.END_ARRAYfor wrapping. This step will loop, returning series of nulls ifnextToken()is called multiple times.- See Also:
-
_objectCodec
protected com.fasterxml.jackson.core.ObjectCodec _objectCodecCodec used for data binding when (if) requested. -
_streamReadConstraints
protected final com.fasterxml.jackson.core.StreamReadConstraints _streamReadConstraints- Since:
- 2.15
-
_ioContext
protected final com.fasterxml.jackson.core.io.IOContext _ioContext- Since:
- 2.16
-
_formatFeatures
protected int _formatFeatures -
_schema
Definition of columns being read. Initialized to "empty" instance, which has default configuration settings. -
_columnCount
protected int _columnCountNumber of columns defined by schema. -
_cfgEmptyStringAsNull
protected boolean _cfgEmptyStringAsNull- Since:
- 2.12
-
_cfgEmptyUnquotedStringAsNull
protected boolean _cfgEmptyUnquotedStringAsNull- Since:
- 2.18
-
_parsingContext
protected com.fasterxml.jackson.core.json.JsonReadContext _parsingContextInformation about parser context, context in which the next token is to be parsed (root, array, object). -
_currentName
Name of column that we exposed most recently, accessible afterJsonToken.FIELD_NAMEas well as value tokens immediately following field name. -
_currentValue
String value for the current column, if accessed. -
_columnIndex
protected int _columnIndexIndex of the column we are exposing -
_state
protected int _stateCurrent logical state of the parser; one ofSTATE_constants. -
_binaryValue
protected byte[] _binaryValueWe will hold on to decoded binary data, for duration of current event, so that multiple calls togetBinaryValue(Base64Variant)will not need to decode data more than once. -
_arrayValueStart
protected int _arrayValueStartPointer to the first character of the next array value to return. -
_arrayValue
Contents of the cell, to be split into distinct array values. -
_arraySeparator
-
_nullValue
-
_reader
Thing that actually reads the CSV content -
_textBuffer
protected final com.fasterxml.jackson.core.util.TextBuffer _textBufferBuffer that contains contents of all values after processing of doubled-quotes, escaped characters. -
_byteArrayBuilder
protected com.fasterxml.jackson.core.util.ByteArrayBuilder _byteArrayBuilder
-
-
Constructor Details
-
CsvParser
public CsvParser(com.fasterxml.jackson.core.io.IOContext ctxt, int stdFeatures, int csvFeatures, com.fasterxml.jackson.core.ObjectCodec codec, Reader reader)
-
-
Method Details
-
streamReadConstraints
public com.fasterxml.jackson.core.StreamReadConstraints streamReadConstraints()- Overrides:
streamReadConstraintsin classcom.fasterxml.jackson.core.JsonParser
-
version
public com.fasterxml.jackson.core.Version version()- Specified by:
versionin interfacecom.fasterxml.jackson.core.Versioned- Specified by:
versionin classcom.fasterxml.jackson.core.JsonParser
-
canUseSchema
public boolean canUseSchema(com.fasterxml.jackson.core.FormatSchema schema) - Overrides:
canUseSchemain classcom.fasterxml.jackson.core.JsonParser
-
requiresCustomCodec
public boolean requiresCustomCodec()- Overrides:
requiresCustomCodecin classcom.fasterxml.jackson.core.JsonParser
-
canReadObjectId
public boolean canReadObjectId()- Overrides:
canReadObjectIdin classcom.fasterxml.jackson.core.JsonParser
-
canReadTypeId
public boolean canReadTypeId()- Overrides:
canReadTypeIdin classcom.fasterxml.jackson.core.JsonParser
-
getReadCapabilities
public com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamReadCapability> getReadCapabilities()- Overrides:
getReadCapabilitiesin classcom.fasterxml.jackson.core.JsonParser
-
getCodec
public com.fasterxml.jackson.core.ObjectCodec getCodec()- Specified by:
getCodecin classcom.fasterxml.jackson.core.JsonParser
-
setCodec
public void setCodec(com.fasterxml.jackson.core.ObjectCodec c) - Specified by:
setCodecin classcom.fasterxml.jackson.core.JsonParser
-
setSchema
public void setSchema(com.fasterxml.jackson.core.FormatSchema schema) - Overrides:
setSchemain classcom.fasterxml.jackson.core.JsonParser
-
releaseBuffered
- Overrides:
releaseBufferedin classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
isClosed
public boolean isClosed()- Specified by:
isClosedin classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
IOException
-
getFormatFeatures
public int getFormatFeatures()- Overrides:
getFormatFeaturesin classcom.fasterxml.jackson.core.JsonParser
-
overrideFormatFeatures
public com.fasterxml.jackson.core.JsonParser overrideFormatFeatures(int values, int mask) - Overrides:
overrideFormatFeaturesin classcom.fasterxml.jackson.core.JsonParser
-
enable
Method for enabling specified CSV feature (checkCsvParser.Featurefor list of features) -
disable
Method for disabling specified CSV feature (checkCsvParser.Featurefor list of features) -
configure
Method for enabling or disabling specified CSV feature (checkCsvParser.Featurefor list of features) -
isEnabled
Method for checking whether specified CSVCsvParser.Featureis enabled. -
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:
getSchemain classcom.fasterxml.jackson.core.JsonParser
-
getParsingContext
public com.fasterxml.jackson.core.JsonStreamContext getParsingContext()- Specified by:
getParsingContextin classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
currentLocation
public com.fasterxml.jackson.core.JsonLocation currentLocation()- Overrides:
currentLocationin classcom.fasterxml.jackson.core.JsonParser
-
currentTokenLocation
public com.fasterxml.jackson.core.JsonLocation currentTokenLocation()- Overrides:
currentTokenLocationin classcom.fasterxml.jackson.core.JsonParser
-
getCurrentLocation
Deprecated.- Specified by:
getCurrentLocationin classcom.fasterxml.jackson.core.JsonParser
-
getTokenLocation
Deprecated.- Specified by:
getTokenLocationin classcom.fasterxml.jackson.core.JsonParser
-
getInputSource
- Overrides:
getInputSourcein classcom.fasterxml.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:
isExpectedStartArrayTokenin classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
isExpectedNumberIntToken
public boolean isExpectedNumberIntToken()- Overrides:
isExpectedNumberIntTokenin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Returns:
- Whether the token can be read as
JsonToken.VALUE_NUMBER_INT(with possible coercion) - Throws:
UncheckedIOException- if the number is too long
-
currentName
- Overrides:
currentNamein classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
overrideCurrentName
- Specified by:
overrideCurrentNamein classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
getCurrentName
Deprecated.- Specified by:
getCurrentNamein classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
IOException
-
nextToken
- Specified by:
nextTokenin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
IOException
-
nextFieldName
- Overrides:
nextFieldNamein classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
nextFieldName
- Overrides:
nextFieldNamein classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
nextTextValue
- Overrides:
nextTextValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
_readHeaderLine
Method called to process the expected header line- Throws:
IOException
-
_handleStartDoc
Method called to handle details of initializing things to return the very first token.- Throws:
IOException
-
_handleRecordStart
- Throws:
IOException
-
_handleNextEntry
- Throws:
IOException
-
_handleNamedValue
- Throws:
IOException
-
_handleUnnamedValue
- Throws:
IOException
-
_handleArrayValue
- Throws:
IOException
-
_handleExtraColumn
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:
IOException- Since:
- 2.7
-
_handleMissingColumns
Helper method called when end of row occurs before finding values for all schema-specified columns.- Throws:
IOException- Since:
- 2.9
-
_handleMissingName
- Throws:
IOException
-
_handleMissingValue
- Throws:
IOException
-
_handleObjectRowEnd
Helper method called to handle details of state update when end of logical record occurs.- Throws:
IOException- Since:
- 2.9
-
_skipUntilEndOfLine
- Throws:
IOException
-
hasTextCharacters
public boolean hasTextCharacters()- Specified by:
hasTextCharactersin classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
getText
- Specified by:
getTextin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
IOException
-
getTextCharacters
- Specified by:
getTextCharactersin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
IOException
-
getTextLength
- Specified by:
getTextLengthin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
IOException
-
getTextOffset
- Specified by:
getTextOffsetin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
IOException
-
getText
- Overrides:
getTextin classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
getEmbeddedObject
- Overrides:
getEmbeddedObjectin classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
getBinaryValue
- Specified by:
getBinaryValuein classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
IOException
-
getNumberType
- Specified by:
getNumberTypein classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
getNumberTypeFP
- Overrides:
getNumberTypeFPin classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
getNumberValue
- Specified by:
getNumberValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
getNumberValueExact
- Overrides:
getNumberValueExactin classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
getIntValue
- Specified by:
getIntValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
getLongValue
- Specified by:
getLongValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
getBigIntegerValue
- Specified by:
getBigIntegerValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
getFloatValue
- Specified by:
getFloatValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
getDoubleValue
- Specified by:
getDoubleValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
getDecimalValue
- Specified by:
getDecimalValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
IOException
-
_handleEOF
protected void _handleEOF() throws com.fasterxml.jackson.core.JsonParseException- Specified by:
_handleEOFin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
com.fasterxml.jackson.core.JsonParseException
-
_reportCsvMappingError
Method called when there is a problem related to mapping data (compared to a low-level generation); if so, should be surfaced as- Throws:
IOException- Since:
- 2.9
-
_reportParsingError
public void _reportParsingError(String msg) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
_reportUnexpectedCsvChar
public void _reportUnexpectedCsvChar(int ch, String msg) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
_getByteArrayBuilder
public com.fasterxml.jackson.core.util.ByteArrayBuilder _getByteArrayBuilder() -
_startArray
-
_isNullValue
Helper method called to check whether specified String value should be considered "null" value, if so configured.- Since:
- 2.17.1
-