This repository was archived by the owner on Jan 22, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
src/main/java/com/fasterxml/jackson/dataformat/csv Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -501,6 +501,7 @@ public String nextFieldName() throws IOException
501
501
{
502
502
// Optimize for expected case of getting FIELD_NAME:
503
503
if (_state == STATE_NEXT_ENTRY ) {
504
+ _binaryValue = null ;
504
505
JsonToken t = _handleNextEntry ();
505
506
_currToken = t ;
506
507
if (t == JsonToken .FIELD_NAME ) {
@@ -511,7 +512,28 @@ public String nextFieldName() throws IOException
511
512
// unlikely, but verify just in case
512
513
return (nextToken () == JsonToken .FIELD_NAME ) ? getCurrentName () : null ;
513
514
}
514
-
515
+
516
+ @ Override
517
+ public String nextTextValue () throws IOException
518
+ {
519
+ _binaryValue = null ;
520
+ JsonToken t ;
521
+ if (_state == STATE_NAMED_VALUE ) {
522
+ _currToken = t = _handleNamedValue ();
523
+ if (t == JsonToken .VALUE_STRING ) {
524
+ return _currentValue ;
525
+ }
526
+ } else if (_state == STATE_UNNAMED_VALUE ) {
527
+ _currToken = t = _handleUnnamedValue ();
528
+ if (t == JsonToken .VALUE_STRING ) {
529
+ return _currentValue ;
530
+ }
531
+ } else {
532
+ t = nextToken ();
533
+ }
534
+ return (t == JsonToken .VALUE_STRING ) ? getText () : null ;
535
+ }
536
+
515
537
/*
516
538
/**********************************************************
517
539
/* Parsing, helper methods
You can’t perform that action at this time.
0 commit comments