protected JsonToken _handleNextEntry() throws IOException { // NOTE: only called when we do have real Schema String next; try { next = _reader.nextString(); } catch (IOException e) { // 12-Oct-2015, tatu: Need to resync here as well... _state = STATE_SKIP_EXTRA_COLUMNS; throw e; } if (next == null) { // end of record or input... // 16-Mar-2017, tatu: [dataformat-csv#137] Missing column(s)? if (_columnIndex < _columnCount) { return _handleMissingColumns(); } return _handleObjectRowEnd(); } _currentValue = next; if (_columnIndex >= _columnCount) { return _handleExtraColumn(next); } _state = STATE_NAMED_VALUE; _currentName = _schema.columnName(_columnIndex); return JsonToken.FIELD_NAME; }
protected JsonToken _handleNextEntry() throws IOException { // NOTE: only called when we do have real Schema String next; try { next = _reader.nextString(); } catch (IOException e) { // 12-Oct-2015, tatu: Need to resync here as well... _state = STATE_SKIP_EXTRA_COLUMNS; throw e; } if (next == null) { // end of record or input... // 16-Mar-2017, tatu: [dataformat-csv#137] Missing column(s)? if (_columnIndex < _columnCount) { return _handleMissingColumns(); } return _handleObjectRowEnd(); } _currentValue = next; if (_columnIndex >= _columnCount) { return _handleExtraColumn(next); } _state = STATE_NAMED_VALUE; _currentName = _schema.columnName(_columnIndex); return JsonToken.FIELD_NAME; }