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,java.io.Closeable,java.lang.AutoCloseable
public class CsvParser extends com.fasterxml.jackson.core.base.ParserMinimalBaseJsonParserimplementation 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 Modifier and Type Class Description static classCsvParser.FeatureEnumeration that defines all togglable features for CSV parsers
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String_arraySeparatorprotected java.lang.String_arrayValueContents of the cell, to be split into distinct array values.protected int_arrayValueStartPointer to the first character of the next array value to return.protected byte[]_binaryValueWe will hold on to decoded binary data, for duration of current event, so that multiple calls togetBinaryValue(com.fasterxml.jackson.core.Base64Variant)will not need to decode data more than once.protected com.fasterxml.jackson.core.util.ByteArrayBuilder_byteArrayBuilderprotected int_columnCountNumber of columns defined by schema.protected int_columnIndexIndex of the column we are exposingprotected java.lang.String_currentNameName of column that we exposed most recently, accessible afterJsonToken.FIELD_NAMEas well as value tokens immediately following field name.protected java.lang.String_currentValueString value for the current column, if accessed.protected int_formatFeaturesprotected java.lang.String_nullValueprotected com.fasterxml.jackson.core.ObjectCodec_objectCodecCodec used for data binding when (if) requested.protected com.fasterxml.jackson.core.json.JsonReadContext_parsingContextInformation about parser context, context in which the next token is to be parsed (root, array, object).protected CsvDecoder_readerThing that actually reads the CSV contentprotected CsvSchema_schemaDefinition of columns being read.protected int_stateCurrent logical state of the parser; one ofSTATE_constants.protected TextBuffer_textBufferBuffer that contains contents of all values after processing of doubled-quotes, escaped characters.protected static intSTATE_DOC_ENDState in which end marker is returned; either null (if no array wrapping), orJsonToken.END_ARRAYfor wrapping.protected static intSTATE_DOC_STARTInitial state before anything is read from document.protected static intSTATE_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.protected static intSTATE_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.protected static intSTATE_MISSING_VALUEState in which we should expose `null` value token as a value for "missing" column; seeCsvParser.Feature.INSERT_NULLS_FOR_MISSING_COLUMNSfor details.protected static intSTATE_NAMED_VALUEState in which value matching field name will be returned.protected static intSTATE_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.protected static intSTATE_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).protected static intSTATE_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.protected static intSTATE_UNNAMED_VALUEState in which "unnamed" value (entry in an array) will be returned, if one available; otherwise end-array is returned.-
Fields 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_UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description CsvParser(CsvIOContext ctxt, int stdFeatures, int csvFeatures, com.fasterxml.jackson.core.ObjectCodec codec, java.io.Reader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.core.util.ByteArrayBuilder_getByteArrayBuilder()protected com.fasterxml.jackson.core.JsonToken_handleArrayValue()protected void_handleEOF()protected com.fasterxml.jackson.core.JsonToken_handleExtraColumn(java.lang.String value)Helper method called when an extraneous column value is found.protected com.fasterxml.jackson.core.JsonToken_handleMissingColumns()Helper method called when end of row occurs before finding values for all schema-specified columns.protected com.fasterxml.jackson.core.JsonToken_handleMissingName()protected com.fasterxml.jackson.core.JsonToken_handleMissingValue()protected com.fasterxml.jackson.core.JsonToken_handleNamedValue()protected com.fasterxml.jackson.core.JsonToken_handleNextEntry()protected com.fasterxml.jackson.core.JsonToken_handleObjectRowEnd()Helper method called to handle details of state update when end of logical record occurs.protected com.fasterxml.jackson.core.JsonToken_handleRecordStart()protected com.fasterxml.jackson.core.JsonToken_handleStartDoc()Method called to handle details of initializing things to return the very first token.protected com.fasterxml.jackson.core.JsonToken_handleUnnamedValue()protected void_readHeaderLine()Method called to process the expected header line<T> T_reportCsvMappingError(java.lang.String msg, java.lang.Object... args)Method called when there is a problem related to mapping data (compared to a low-level generation); if so, should be surfaced asvoid_reportParsingError(java.lang.String msg)void_reportUnexpectedCsvChar(int ch, java.lang.String msg)protected com.fasterxml.jackson.core.JsonToken_skipUntilEndOfLine()protected void_startArray(CsvSchema.Column column)booleancanUseSchema(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.JsonParserdisable(CsvParser.Feature f)Method for disabling specified CSV feature (checkCsvParser.Featurefor list of features)com.fasterxml.jackson.core.JsonParserenable(CsvParser.Feature f)Method for enabling specified CSV feature (checkCsvParser.Featurefor list of features)java.math.BigIntegergetBigIntegerValue()byte[]getBinaryValue(com.fasterxml.jackson.core.Base64Variant variant)com.fasterxml.jackson.core.ObjectCodecgetCodec()com.fasterxml.jackson.core.JsonLocationgetCurrentLocation()java.lang.StringgetCurrentName()java.math.BigDecimalgetDecimalValue()doublegetDoubleValue()java.lang.ObjectgetEmbeddedObject()floatgetFloatValue()intgetFormatFeatures()java.lang.ObjectgetInputSource()intgetIntValue()longgetLongValue()com.fasterxml.jackson.core.JsonParser.NumberTypegetNumberType()java.lang.NumbergetNumberValue()com.fasterxml.jackson.core.JsonStreamContextgetParsingContext()CsvSchemagetSchema()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)java.lang.StringgetText()intgetText(java.io.Writer w)char[]getTextCharacters()intgetTextLength()intgetTextOffset()com.fasterxml.jackson.core.JsonLocationgetTokenLocation()booleanhasTextCharacters()booleanisClosed()booleanisEnabled(CsvParser.Feature f)Method for checking whether specified CSVCsvParser.Featureis enabled.booleanisExpectedStartArrayToken()We need to override this method to support coercion from basic String value into array, in cases where schema does not specify actual type.java.lang.StringnextFieldName()booleannextFieldName(com.fasterxml.jackson.core.SerializableString str)java.lang.StringnextTextValue()com.fasterxml.jackson.core.JsonTokennextToken()voidoverrideCurrentName(java.lang.String name)com.fasterxml.jackson.core.JsonParseroverrideFormatFeatures(int values, int mask)intreleaseBuffered(java.io.Writer out)voidsetCodec(com.fasterxml.jackson.core.ObjectCodec c)voidsetSchema(com.fasterxml.jackson.core.FormatSchema schema)com.fasterxml.jackson.core.Versionversion()-
Methods inherited from class com.fasterxml.jackson.core.base.ParserMinimalBase
_ascii, _asciiBytes, _constructError, _decodeBase64, _getCharDesc, _hasTextualNull, _longIntegerDesc, _longNumberDesc, _reportError, _reportError, _reportError, _reportInputCoercion, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportInvalidEOFInValue, _reportMissingRootWS, _reportUnexpectedChar, _throwInternal, _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, skipChildren
-
Methods inherited from class com.fasterxml.jackson.core.JsonParser
_codec, _constructError, _reportUnsupportedOperation, canParseAsync, canReadObjectId, canReadTypeId, configure, currentName, disable, enable, finishToken, getBinaryValue, getBooleanValue, getByteValue, getCurrentValue, getFeatureMask, getNonBlockingInputFeeder, getObjectId, getShortValue, getTypeId, getValueAsBoolean, getValueAsDouble, isEnabled, isNaN, nextBooleanValue, nextIntValue, nextLongValue, overrideStdFeatures, readBinaryValue, readBinaryValue, readValueAs, readValueAs, readValueAsTree, readValuesAs, readValuesAs, releaseBuffered, requiresCustomCodec, setCurrentValue, setFeatureMask, setRequestPayloadOnError, setRequestPayloadOnError, setRequestPayloadOnError
-
-
-
-
Field Detail
-
STATE_DOC_START
protected static final int STATE_DOC_START
Initial state before anything is read from document.- See Also:
- Constant Field Values
-
STATE_RECORD_START
protected static final int STATE_RECORD_START
State 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:
- Constant Field Values
-
STATE_NEXT_ENTRY
protected static final int STATE_NEXT_ENTRY
State 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:
- Constant Field Values
-
STATE_NAMED_VALUE
protected static final int STATE_NAMED_VALUE
State in which value matching field name will be returned.- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
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.- Since:
- 2.5
- See Also:
- Constant Field Values
-
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.- Since:
- 2.6
- See Also:
- Constant Field Values
-
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); seeCsvParser.Feature.INSERT_NULLS_FOR_MISSING_COLUMNSfor details.- Since:
- 2.9
- See Also:
- Constant Field Values
-
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; seeCsvParser.Feature.INSERT_NULLS_FOR_MISSING_COLUMNSfor details.- Since:
- 2.9
- See Also:
- Constant Field Values
-
STATE_DOC_END
protected static final int STATE_DOC_END
State 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:
- Constant Field Values
-
_objectCodec
protected com.fasterxml.jackson.core.ObjectCodec _objectCodec
Codec used for data binding when (if) requested.
-
_formatFeatures
protected int _formatFeatures
-
_schema
protected CsvSchema _schema
Definition of columns being read. Initialized to "empty" instance, which has default configuration settings.
-
_columnCount
protected int _columnCount
Number of columns defined by schema.
-
_parsingContext
protected com.fasterxml.jackson.core.json.JsonReadContext _parsingContext
Information about parser context, context in which the next token is to be parsed (root, array, object).
-
_currentName
protected java.lang.String _currentName
Name of column that we exposed most recently, accessible afterJsonToken.FIELD_NAMEas well as value tokens immediately following field name.
-
_currentValue
protected java.lang.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 ofSTATE_constants.
-
_binaryValue
protected byte[] _binaryValue
We will hold on to decoded binary data, for duration of current event, so that multiple calls togetBinaryValue(com.fasterxml.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 java.lang.String _arrayValue
Contents of the cell, to be split into distinct array values.
-
_arraySeparator
protected java.lang.String _arraySeparator
-
_nullValue
protected java.lang.String _nullValue
-
_reader
protected final CsvDecoder _reader
Thing that actually reads the CSV content
-
_textBuffer
protected final TextBuffer _textBuffer
Buffer that contains contents of all values after processing of doubled-quotes, escaped characters.
-
_byteArrayBuilder
protected com.fasterxml.jackson.core.util.ByteArrayBuilder _byteArrayBuilder
-
-
Constructor Detail
-
CsvParser
public CsvParser(CsvIOContext ctxt, int stdFeatures, int csvFeatures, com.fasterxml.jackson.core.ObjectCodec codec, java.io.Reader reader)
-
-
Method Detail
-
version
public com.fasterxml.jackson.core.Version version()
- Specified by:
versionin interfacecom.fasterxml.jackson.core.Versioned- Specified by:
versionin 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
-
canUseSchema
public boolean canUseSchema(com.fasterxml.jackson.core.FormatSchema schema)
- Overrides:
canUseSchemain classcom.fasterxml.jackson.core.JsonParser
-
setSchema
public void setSchema(com.fasterxml.jackson.core.FormatSchema schema)
- Overrides:
setSchemain classcom.fasterxml.jackson.core.JsonParser
-
releaseBuffered
public int releaseBuffered(java.io.Writer out) throws java.io.IOException- Overrides:
releaseBufferedin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.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
public com.fasterxml.jackson.core.JsonParser enable(CsvParser.Feature f)
Method for enabling specified CSV feature (checkCsvParser.Featurefor list of features)
-
disable
public com.fasterxml.jackson.core.JsonParser disable(CsvParser.Feature f)
Method for disabling specified CSV feature (checkCsvParser.Featurefor list of features)
-
configure
public com.fasterxml.jackson.core.JsonParser configure(CsvParser.Feature f, boolean state)
Method for enabling or disabling specified CSV feature (checkCsvParser.Featurefor list of features)
-
isEnabled
public boolean isEnabled(CsvParser.Feature f)
Method for checking whether specified CSVCsvParser.Featureis 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:
getSchemain classcom.fasterxml.jackson.core.JsonParser
-
getParsingContext
public com.fasterxml.jackson.core.JsonStreamContext getParsingContext()
- Specified by:
getParsingContextin classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
getTokenLocation
public com.fasterxml.jackson.core.JsonLocation getTokenLocation()
- Specified by:
getTokenLocationin classcom.fasterxml.jackson.core.JsonParser
-
getCurrentLocation
public com.fasterxml.jackson.core.JsonLocation getCurrentLocation()
- Specified by:
getCurrentLocationin classcom.fasterxml.jackson.core.JsonParser
-
getInputSource
public java.lang.Object 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
-
getCurrentName
public java.lang.String getCurrentName() throws java.io.IOException- Specified by:
getCurrentNamein classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
overrideCurrentName
public void overrideCurrentName(java.lang.String name)
- Specified by:
overrideCurrentNamein classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
nextToken
public com.fasterxml.jackson.core.JsonToken nextToken() throws java.io.IOException- Specified by:
nextTokenin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
nextFieldName
public boolean nextFieldName(com.fasterxml.jackson.core.SerializableString str) throws java.io.IOException- Overrides:
nextFieldNamein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
nextFieldName
public java.lang.String nextFieldName() throws java.io.IOException- Overrides:
nextFieldNamein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
nextTextValue
public java.lang.String nextTextValue() throws java.io.IOException- Overrides:
nextTextValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
_readHeaderLine
protected void _readHeaderLine() throws java.io.IOExceptionMethod called to process the expected header line- Throws:
java.io.IOException
-
_handleStartDoc
protected com.fasterxml.jackson.core.JsonToken _handleStartDoc() throws java.io.IOExceptionMethod called to handle details of initializing things to return the very first token.- Throws:
java.io.IOException
-
_handleRecordStart
protected com.fasterxml.jackson.core.JsonToken _handleRecordStart() throws java.io.IOException- Throws:
java.io.IOException
-
_handleNextEntry
protected com.fasterxml.jackson.core.JsonToken _handleNextEntry() throws java.io.IOException- Throws:
java.io.IOException
-
_handleNamedValue
protected com.fasterxml.jackson.core.JsonToken _handleNamedValue() throws java.io.IOException- Throws:
java.io.IOException
-
_handleUnnamedValue
protected com.fasterxml.jackson.core.JsonToken _handleUnnamedValue() throws java.io.IOException- Throws:
java.io.IOException
-
_handleArrayValue
protected com.fasterxml.jackson.core.JsonToken _handleArrayValue() throws java.io.IOException- Throws:
java.io.IOException
-
_handleExtraColumn
protected com.fasterxml.jackson.core.JsonToken _handleExtraColumn(java.lang.String value) throws java.io.IOExceptionHelper 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:
java.io.IOException- Since:
- 2.7
-
_handleMissingColumns
protected com.fasterxml.jackson.core.JsonToken _handleMissingColumns() throws java.io.IOExceptionHelper method called when end of row occurs before finding values for all schema-specified columns.- Throws:
java.io.IOException- Since:
- 2.9
-
_handleMissingName
protected com.fasterxml.jackson.core.JsonToken _handleMissingName() throws java.io.IOException- Throws:
java.io.IOException
-
_handleMissingValue
protected com.fasterxml.jackson.core.JsonToken _handleMissingValue() throws java.io.IOException- Throws:
java.io.IOException
-
_handleObjectRowEnd
protected final com.fasterxml.jackson.core.JsonToken _handleObjectRowEnd() throws java.io.IOExceptionHelper method called to handle details of state update when end of logical record occurs.- Throws:
java.io.IOException- Since:
- 2.9
-
_skipUntilEndOfLine
protected final com.fasterxml.jackson.core.JsonToken _skipUntilEndOfLine() throws java.io.IOException- Throws:
java.io.IOException
-
hasTextCharacters
public boolean hasTextCharacters()
- Specified by:
hasTextCharactersin classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
getText
public java.lang.String getText() throws java.io.IOException- Specified by:
getTextin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getTextCharacters
public char[] getTextCharacters() throws java.io.IOException- Specified by:
getTextCharactersin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getTextLength
public int getTextLength() throws java.io.IOException- Specified by:
getTextLengthin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getTextOffset
public int getTextOffset() throws java.io.IOException- Specified by:
getTextOffsetin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getText
public int getText(java.io.Writer w) throws java.io.IOException- Overrides:
getTextin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getEmbeddedObject
public java.lang.Object getEmbeddedObject() throws java.io.IOException- Overrides:
getEmbeddedObjectin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getBinaryValue
public byte[] getBinaryValue(com.fasterxml.jackson.core.Base64Variant variant) throws java.io.IOException- Specified by:
getBinaryValuein classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getNumberType
public com.fasterxml.jackson.core.JsonParser.NumberType getNumberType() throws java.io.IOException- Specified by:
getNumberTypein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getNumberValue
public java.lang.Number getNumberValue() throws java.io.IOException- Specified by:
getNumberValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getIntValue
public int getIntValue() throws java.io.IOException- Specified by:
getIntValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getLongValue
public long getLongValue() throws java.io.IOException- Specified by:
getLongValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getBigIntegerValue
public java.math.BigInteger getBigIntegerValue() throws java.io.IOException- Specified by:
getBigIntegerValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getFloatValue
public float getFloatValue() throws java.io.IOException- Specified by:
getFloatValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getDoubleValue
public double getDoubleValue() throws java.io.IOException- Specified by:
getDoubleValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getDecimalValue
public java.math.BigDecimal getDecimalValue() throws java.io.IOException- Specified by:
getDecimalValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.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
public <T> T _reportCsvMappingError(java.lang.String msg, java.lang.Object... args) throws com.fasterxml.jackson.core.JsonProcessingExceptionMethod called when there is a problem related to mapping data (compared to a low-level generation); if so, should be surfaced as- Throws:
com.fasterxml.jackson.core.JsonProcessingException- Since:
- 2.9
-
_reportParsingError
public void _reportParsingError(java.lang.String msg) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
_reportUnexpectedCsvChar
public void _reportUnexpectedCsvChar(int ch, java.lang.String msg) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
_getByteArrayBuilder
public com.fasterxml.jackson.core.util.ByteArrayBuilder _getByteArrayBuilder()
-
_startArray
protected void _startArray(CsvSchema.Column column)
-
-