| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected boolean | |
| protected boolean | _bufferRecyclable
Flag that indicates whether the input buffer is recycable (and needs to be returned to recycler once we are done) or not. |
| protected boolean | _closed
Flag that indicates whether parser is closed or not. |
| protected long | _currInputProcessed
Number of characters/bytes that were contained in previous blocks (blocks that were already processed prior to the current buffer). |
| protected boolean | _currInputQuoted
Flag that indicates whether the current token has been quoted or not. |
| protected int | _currInputRow
Current row location of current point in input buffer, starting from 1, if available. |
| protected int | _currInputRowStart
Current index of the first character of the current row in input buffer. |
| protected int | |
| protected char[] | _inputBuffer
Current buffer from which data is read; generally data is read into buffer from input source, but in some cases pre-loaded buffer is handed to the parser. |
| protected int | _inputEnd
Index of character after last available one in the buffer. |
| protected int | _inputPtr
Pointer to next available character in buffer |
| protected Reader | _inputReader
Input stream that can be used for reading more content, if one in use. |
| protected final IOContext | _ioContext
I/O context for this reader. |
| protected int | _maxSpecialChar
Maximum of quote character, linefeeds (\r and \n), escape character. |
| protected BigDecimal | |
| protected BigInteger | |
| protected double | |
| protected int | |
| protected long | |
| protected String | _numberString
Textual number representation captured from input in cases lazy-parsing is desired. |
| protected int | _numTypesValid
Bitfield that indicates which numeric representations have been calculated for the current type |
| protected final CsvParser | _owner
Unfortunate back reference, needed for error reporting |
| protected int | _pendingLF
Marker to indicate that a linefeed was encountered and now needs to be handled (indicates end-of-record). |
| protected int | |
| protected int | |
| protected boolean | |
| protected final TextBuffer | _textBuffer
Buffer that contains contents of all values after processing of doubled-quotes, escaped characters. |
| protected int | _tokenInputCol
Column on input row that current token starts; 0-based (although in the end it'll be converted to 1-based) |
| protected int | _tokenInputRow
Input row on which current token starts, 1-based |
| protected long | _tokenInputTotal
Total number of bytes/characters read before start of current token. |
| protected boolean | _trimSpaces
Configuration flag that determines whether spaces surrounding separator characters are to be automatically trimmed or not. |
| pack-priv static final BigDecimal | |
| pack-priv static final BigDecimal | |
| pack-priv static final BigDecimal | |
| pack-priv static final BigDecimal | |
| pack-priv static final BigInteger | |
| pack-priv static final BigInteger | |
| pack-priv static final BigInteger | |
| pack-priv static final BigInteger | |
| protected static final char | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| private static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| private static final int | |
| protected static final int | |
| protected static final int | |
| private static final int | |
| pack-priv static final double | |
| pack-priv static final long | |
| pack-priv static final double | |
| pack-priv static final double | |
| pack-priv static final long | |
| pack-priv static final double | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| public | CsvDecoder(CsvParser owner, IOContext ctxt, Reader r, CsvSchema schema, TextBuffer textBuffer, int stdFeatures, int csvFeatures)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected BigDecimal | _getBigDecimal()
Internal accessor that needs to be used for accessing number value of type
|
| protected BigInteger | _getBigInteger()
Internal accessor that needs to be used for accessing number value of type
|
| protected static final String | |
| protected final void | |
| protected final int | |
| protected String | |
| protected String | |
| protected void | |
| protected void | _parseNumericValue(boolean
Whether to try to retain the highest precision for
floating-point values or not exactNumber)Method that will parse actual numeric value out of a syntactically valid number value. |
| private final void | |
| private final void | |
| protected final void | |
| private void | |
| public boolean | |
| protected final int | |
| private void | |
| protected char | |
| public JsonReadContext | |
| public JsonReadContext | |
| public void | |
| protected final JsonParseException | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public BigInteger | |
| public final int | |
| public JsonLocation | |
| public final int | |
| public BigDecimal | |
| public double | |
| public float | |
| public Object | |
| public int | |
| public long | |
| public JsonParser. | |
| public Number | getNumberValue(boolean
Whether we should try to retain maximum precision or not;
passed as exact)true by getNumberValueExact(), and as
false by regular getNumberValue).
|
| public String | |
| protected final long | |
| protected final int | |
| protected final int | |
| public JsonLocation | |
| public boolean | hasMoreInput()
Method that can be called to see if there is at least one more character to be parsed. |
| public boolean | |
| public final boolean | Returns: True if the current token has been quoted, false otherwiseTell if the current token has been quoted or not. |
| public boolean | isExpectedNumberIntToken()
Method used by |
| protected final boolean | |
| private boolean | |
| public JsonToken | |
| public JsonToken | |
| public String | Returns: Column value if more found; null to indicate end of line of inputMethod called to parse the next token when we don't have any type information, so that all tokens are exposed as basic String values. |
| public JsonToken | |
| public void | |
| public int | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | |
| public boolean | skipLine()
Method called to blindly skip a single line of content, without considering aspects like quoting or escaping. |
| public boolean | Returns: false if the end of input was reachedOptionally skip lines that are empty or are comments, depending on the feature activated in the parser |
| public boolean | Returns: True if there is a new data line to handle; false if notMethod called to handle details of starting a new line, which may include skipping a linefeed. |
| _allowComments | back to summary |
|---|---|
| protected boolean _allowComments | |
| _autoCloseInput | back to summary |
|---|---|
| protected boolean _autoCloseInput | |
| _bufferRecyclable | back to summary |
|---|---|
| protected boolean _bufferRecyclable Flag that indicates whether the input buffer is recycable (and needs to be returned to recycler once we are done) or not. If it is not, it also means that parser can NOT modify underlying buffer. | |
| _closed | back to summary |
|---|---|
| protected boolean _closed Flag that indicates whether parser is closed or not. Gets
set when parser is either closed by explicit call
( | |
| _currInputProcessed | back to summary |
|---|---|
| protected long _currInputProcessed Number of characters/bytes that were contained in previous blocks (blocks that were already processed prior to the current buffer). | |
| _currInputQuoted | back to summary |
|---|---|
| protected boolean _currInputQuoted Flag that indicates whether the current token has been quoted or not.
| |
| _currInputRow | back to summary |
|---|---|
| protected int _currInputRow Current row location of current point in input buffer, starting from 1, if available. | |
| _currInputRowStart | back to summary |
|---|---|
| protected int _currInputRowStart Current index of the first character of the current row in input buffer. Needed to calculate column position, if necessary; benefit of not having column itself is that this only has to be updated once per line. | |
| _escapeChar | back to summary |
|---|---|
| protected int _escapeChar | |
| _inputBuffer | back to summary |
|---|---|
| protected char[] _inputBuffer Current buffer from which data is read; generally data is read into buffer from input source, but in some cases pre-loaded buffer is handed to the parser. | |
| _inputEnd | back to summary |
|---|---|
| protected int _inputEnd Index of character after last available one in the buffer. | |
| _inputPtr | back to summary |
|---|---|
| protected int _inputPtr Pointer to next available character in buffer | |
| _inputReader | back to summary |
|---|---|
| protected Reader _inputReader Input stream that can be used for reading more content, if one in use. May be null, if input comes just as a full buffer, or if the stream has been closed. Note renamed in 2.13 from | |
| _ioContext | back to summary |
|---|---|
| protected final IOContext _ioContext I/O context for this reader. It handles buffer allocation for the reader. | |
| _maxSpecialChar | back to summary |
|---|---|
| protected int _maxSpecialChar Maximum of quote character, linefeeds (\r and \n), escape character. | |
| _numberBigDecimal | back to summary |
|---|---|
| protected BigDecimal _numberBigDecimal | |
| _numberBigInt | back to summary |
|---|---|
| protected BigInteger _numberBigInt | |
| _numberDouble | back to summary |
|---|---|
| protected double _numberDouble | |
| _numberInt | back to summary |
|---|---|
| protected int _numberInt | |
| _numberLong | back to summary |
|---|---|
| protected long _numberLong | |
| _numberString | back to summary |
|---|---|
| protected String _numberString Textual number representation captured from input in cases lazy-parsing is desired.
As of 2.14, this only applies to
| |
| _numTypesValid | back to summary |
|---|---|
| protected int _numTypesValid Bitfield that indicates which numeric representations have been calculated for the current type | |
| _owner | back to summary |
|---|---|
| protected final CsvParser _owner Unfortunate back reference, needed for error reporting | |
| _pendingLF | back to summary |
|---|---|
| protected int _pendingLF Marker to indicate that a linefeed was encountered and now needs to be handled (indicates end-of-record). | |
| _quoteChar | back to summary |
|---|---|
| protected int _quoteChar | |
| _separatorChar | back to summary |
|---|---|
| protected int _separatorChar | |
| _skipBlankLines | back to summary |
|---|---|
protected boolean _skipBlankLines
| |
| _textBuffer | back to summary |
|---|---|
| protected final TextBuffer _textBuffer Buffer that contains contents of all values after processing of doubled-quotes, escaped characters. | |
| _tokenInputCol | back to summary |
|---|---|
| protected int _tokenInputCol Column on input row that current token starts; 0-based (although in the end it'll be converted to 1-based) | |
| _tokenInputRow | back to summary |
|---|---|
| protected int _tokenInputRow Input row on which current token starts, 1-based | |
| _tokenInputTotal | back to summary |
|---|---|
| protected long _tokenInputTotal Total number of bytes/characters read before start of current token. For big (gigabyte-sized) sizes are possible, needs to be long, unlike pointers and sizes related to in-memory buffers. | |
| _trimSpaces | back to summary |
|---|---|
| protected boolean _trimSpaces Configuration flag that determines whether spaces surrounding separator characters are to be automatically trimmed or not. | |
| BD_MAX_INT | back to summary |
|---|---|
| pack-priv static final BigDecimal BD_MAX_INT | |
| BD_MAX_LONG | back to summary |
|---|---|
| pack-priv static final BigDecimal BD_MAX_LONG | |
| BD_MIN_INT | back to summary |
|---|---|
| pack-priv static final BigDecimal BD_MIN_INT | |
| BD_MIN_LONG | back to summary |
|---|---|
| pack-priv static final BigDecimal BD_MIN_LONG | |
| BI_MAX_INT | back to summary |
|---|---|
| pack-priv static final BigInteger BI_MAX_INT | |
| BI_MAX_LONG | back to summary |
|---|---|
| pack-priv static final BigInteger BI_MAX_LONG | |
| BI_MIN_INT | back to summary |
|---|---|
| pack-priv static final BigInteger BI_MIN_INT | |
| BI_MIN_LONG | back to summary |
|---|---|
| pack-priv static final BigInteger BI_MIN_LONG | |
| CHAR_NULL | back to summary |
|---|---|
| protected static final char CHAR_NULL | |
| INT_0 | back to summary |
|---|---|
| protected static final int INT_0 | |
| INT_1 | back to summary |
|---|---|
| protected static final int INT_1 | |
| INT_2 | back to summary |
|---|---|
| protected static final int INT_2 | |
| INT_3 | back to summary |
|---|---|
| protected static final int INT_3 | |
| INT_4 | back to summary |
|---|---|
| protected static final int INT_4 | |
| INT_5 | back to summary |
|---|---|
| protected static final int INT_5 | |
| INT_6 | back to summary |
|---|---|
| protected static final int INT_6 | |
| INT_7 | back to summary |
|---|---|
| protected static final int INT_7 | |
| INT_8 | back to summary |
|---|---|
| protected static final int INT_8 | |
| INT_9 | back to summary |
|---|---|
| protected static final int INT_9 | |
| INT_CR | back to summary |
|---|---|
| private static final int INT_CR | |
| INT_DECIMAL_POINT | back to summary |
|---|---|
| protected static final int INT_DECIMAL_POINT | |
| INT_e | back to summary |
|---|---|
| protected static final int INT_e | |
| INT_E | back to summary |
|---|---|
| protected static final int INT_E | |
| INT_LF | back to summary |
|---|---|
| private static final int INT_LF | |
| INT_MINUS | back to summary |
|---|---|
| protected static final int INT_MINUS | |
| INT_PLUS | back to summary |
|---|---|
| protected static final int INT_PLUS | |
| INT_SPACE | back to summary |
|---|---|
| private static final int INT_SPACE | |
| MAX_INT_D | back to summary |
|---|---|
| pack-priv static final double MAX_INT_D | |
| MAX_INT_L | back to summary |
|---|---|
| pack-priv static final long MAX_INT_L | |
| MAX_LONG_D | back to summary |
|---|---|
| pack-priv static final double MAX_LONG_D | |
| MIN_INT_D | back to summary |
|---|---|
| pack-priv static final double MIN_INT_D | |
| MIN_INT_L | back to summary |
|---|---|
| pack-priv static final long MIN_INT_L | |
| MIN_LONG_D | back to summary |
|---|---|
| pack-priv static final double MIN_LONG_D | |
| NR_BIGDECIMAL | back to summary |
|---|---|
| protected static final int NR_BIGDECIMAL | |
| NR_BIGINT | back to summary |
|---|---|
| protected static final int NR_BIGINT | |
| NR_DOUBLE | back to summary |
|---|---|
| protected static final int NR_DOUBLE | |
| NR_INT | back to summary |
|---|---|
| protected static final int NR_INT | |
| NR_LONG | back to summary |
|---|---|
| protected static final int NR_LONG | |
| NR_UNKNOWN | back to summary |
|---|---|
| protected static final int NR_UNKNOWN | |
| CsvDecoder | back to summary |
|---|---|
| public CsvDecoder(CsvParser owner, IOContext ctxt, Reader r, CsvSchema schema, TextBuffer textBuffer, int stdFeatures, int csvFeatures) | |
| _closeInput | back to summary |
|---|---|
| protected void _closeInput() throws IOException | |
| _getBigDecimal | back to summary |
|---|---|
| protected BigDecimal _getBigDecimal() throws IOException Internal accessor that needs to be used for accessing number value of type
| |
| _getBigInteger | back to summary |
|---|---|
| protected BigInteger _getBigInteger() throws IOException Internal accessor that needs to be used for accessing number value of type
| |
| _getCharDesc | back to summary |
|---|---|
| protected static final String _getCharDesc(int ch) | |
| _handleLF | back to summary |
|---|---|
| protected final void _handleLF() throws IOException | |
| _nextChar | back to summary |
|---|---|
| protected final int _nextChar() throws IOException | |
| _nextQuotedString | back to summary |
|---|---|
| protected String _nextQuotedString() throws IOException | |
| _nextUnquotedString | back to summary |
|---|---|
| protected String _nextUnquotedString(char[] outBuf, int outPtr) throws IOException | |
| _parseIntValue | back to summary |
|---|---|
| protected void _parseIntValue() throws IOException | |
| _parseNumericValue | back to summary |
|---|---|
| protected void _parseNumericValue(boolean exactNumber) throws IOException Method that will parse actual numeric value out of a syntactically valid number value. Type it will parse into depends on whether it is a floating point number, as well as its magnitude: smallest legal type (of ones available) is used for efficiency.
| |
| _parseSlowFloatValue | back to summary |
|---|---|
| private final void _parseSlowFloatValue(boolean exactNumber) throws IOException | |
| _parseSlowIntValue | back to summary |
|---|---|
| private final void _parseSlowIntValue(char[] buf, int offset, int len, boolean neg) throws IOException | |
| _reportError | back to summary |
|---|---|
| protected final void _reportError(String msg) throws JsonParseException Method for reporting low-level decoding (parsing) problems | |
| _skipCommentContents | back to summary |
|---|---|
| private void _skipCommentContents() throws IOException | |
| _skipCommentLines | back to summary |
|---|---|
| public boolean _skipCommentLines() throws IOException | |
| _skipLeadingSpace | back to summary |
|---|---|
| protected final int _skipLeadingSpace() throws IOException | |
| _throwInternal | back to summary |
|---|---|
| private void _throwInternal() | |
| _unescape | back to summary |
|---|---|
| protected char _unescape() throws IOException | |
| childArrayContext | back to summary |
|---|---|
| public JsonReadContext childArrayContext(JsonReadContext context) | |
| childObjectContext | back to summary |
|---|---|
| public JsonReadContext childObjectContext(JsonReadContext context) | |
| close | back to summary |
|---|---|
| public void close() throws IOException | |
| constructError | back to summary |
|---|---|
| protected final JsonParseException constructError(String msg, Throwable t) | |
| convertNumberToBigDecimal | back to summary |
|---|---|
| protected void convertNumberToBigDecimal() throws IOException | |
| convertNumberToBigInteger | back to summary |
|---|---|
| protected void convertNumberToBigInteger() throws IOException | |
| convertNumberToDouble | back to summary |
|---|---|
| protected void convertNumberToDouble() throws IOException | |
| convertNumberToInt | back to summary |
|---|---|
| protected void convertNumberToInt() throws IOException | |
| convertNumberToLong | back to summary |
|---|---|
| protected void convertNumberToLong() throws IOException | |
| getBigIntegerValue | back to summary |
|---|---|
| public BigInteger getBigIntegerValue() throws IOException | |
| getCurrentColumn | back to summary |
|---|---|
| public final int getCurrentColumn() | |
| getCurrentLocation | back to summary |
|---|---|
| public JsonLocation getCurrentLocation() | |
| getCurrentRow | back to summary |
|---|---|
| public final int getCurrentRow() | |
| getDecimalValue | back to summary |
|---|---|
| public BigDecimal getDecimalValue() throws IOException | |
| getDoubleValue | back to summary |
|---|---|
| public double getDoubleValue() throws IOException | |
| getFloatValue | back to summary |
|---|---|
| public float getFloatValue() throws IOException | |
| getInputSource | back to summary |
|---|---|
| public Object getInputSource() | |
| getIntValue | back to summary |
|---|---|
| public int getIntValue() throws IOException | |
| getLongValue | back to summary |
|---|---|
| public long getLongValue() throws IOException | |
| getNumberType | back to summary |
|---|---|
| public JsonParser. | |
| getNumberValue | back to summary |
|---|---|
public Number getNumberValue(boolean exact) throws IOException
| |
| getText | back to summary |
|---|---|
| public String getText() throws IOException | |
| getTokenCharacterOffset | back to summary |
|---|---|
| protected final long getTokenCharacterOffset() | |
| getTokenColumnNr | back to summary |
|---|---|
| protected final int getTokenColumnNr() | |
| getTokenLineNr | back to summary |
|---|---|
| protected final int getTokenLineNr() | |
| getTokenLocation | back to summary |
|---|---|
| public JsonLocation getTokenLocation() | |
| hasMoreInput | back to summary |
|---|---|
| public boolean hasMoreInput() throws IOException Method that can be called to see if there is at least one more character to be parsed. | |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() | |
| isCurrentTokenQuoted | back to summary |
|---|---|
| public final boolean isCurrentTokenQuoted() Tell if the current token has been quoted or not.
| |
| isExpectedNumberIntToken | back to summary |
|---|---|
| public boolean isExpectedNumberIntToken() throws IOException Method used by
| |
| loadMore | back to summary |
|---|---|
| protected final boolean loadMore() throws IOException | |
| looksLikeInt | back to summary |
|---|---|
| private boolean looksLikeInt() throws IOException | |
| nextNumber | back to summary |
|---|---|
| public JsonToken nextNumber() throws IOException | |
| nextNumberOrString | back to summary |
|---|---|
| public JsonToken nextNumberOrString() throws IOException | |
| nextString | back to summary |
|---|---|
| public String nextString() throws IOException Method called to parse the next token when we don't have any type information, so that all tokens are exposed as basic String values.
| |
| nextStringOrLiteral | back to summary |
|---|---|
| public JsonToken nextStringOrLiteral() throws IOException | |
| overrideFormatFeatures | back to summary |
|---|---|
public void overrideFormatFeatures(int csvFeatures)
| |
| releaseBuffered | back to summary |
|---|---|
| public int releaseBuffered(Writer out) throws IOException | |
| releaseBuffers | back to summary |
|---|---|
| protected void releaseBuffers() throws IOException | |
| reportInvalidNumber | back to summary |
|---|---|
| protected void reportInvalidNumber(String msg) throws JsonParseException | |
| reportOverflowInt | back to summary |
|---|---|
| protected void reportOverflowInt() throws IOException | |
| reportOverflowLong | back to summary |
|---|---|
| protected void reportOverflowLong() throws IOException | |
| reportUnexpectedNumberChar | back to summary |
|---|---|
| protected void reportUnexpectedNumberChar(int ch, String comment) throws JsonParseException | |
| setSchema | back to summary |
|---|---|
| public void setSchema(CsvSchema schema) | |
| skipLine | back to summary |
|---|---|
| public boolean skipLine() throws IOException Method called to blindly skip a single line of content, without considering aspects like quoting or escaping. Used currently simply to skip the first line of input document, if instructed to do so. | |
| skipLinesWhenNeeded | back to summary |
|---|---|
| public boolean skipLinesWhenNeeded() throws IOException Optionally skip lines that are empty or are comments, depending on the feature activated in the parser
| |
| startNewLine | back to summary |
|---|---|
| public boolean startNewLine() throws IOException Method called to handle details of starting a new line, which may include skipping a linefeed.
| |