org.sfm.csv.parser
public abstract class AbstractCsvCharConsumer extends Object implements CsvCharConsumer
| Modifier and Type | Field and Description |
|---|---|
protected int |
_currentIndex |
protected CharBuffer |
csvBuffer |
| Constructor and Description |
|---|
AbstractCsvCharConsumer(CharBuffer csvBuffer) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
consumeOneChar(char c,
int i,
CellConsumer cellConsumer) |
boolean |
fillBuffer(Reader reader) |
void |
finish(CellConsumer cellConsumer) |
protected boolean |
handleEndOfLineCR(int currentIndex,
CellConsumer cellConsumer) |
protected boolean |
handleEndOfLineLF(int currentIndex,
CellConsumer cellConsumer) |
protected void |
newCellIfNotInQuote(int currentIndex,
CellConsumer cellConsumer) |
void |
parseAll(CellConsumer cellConsumer) |
protected void |
quote(int currentIndex) |
protected void |
turnOffCrFlag()
use bit mask to testing if == IN_CR
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnextRow, quoteCharprotected final CharBuffer csvBuffer
protected int _currentIndex
public AbstractCsvCharConsumer(CharBuffer csvBuffer)
public final void parseAll(CellConsumer cellConsumer)
parseAll in interface CsvCharConsumerprotected abstract void consumeOneChar(char c,
int i,
CellConsumer cellConsumer)
protected final void turnOffCrFlag()
protected final void newCellIfNotInQuote(int currentIndex,
CellConsumer cellConsumer)
protected final boolean handleEndOfLineLF(int currentIndex,
CellConsumer cellConsumer)
protected final boolean handleEndOfLineCR(int currentIndex,
CellConsumer cellConsumer)
protected final void quote(int currentIndex)
public final void finish(CellConsumer cellConsumer)
finish in interface CsvCharConsumerpublic final boolean fillBuffer(Reader reader) throws IOException
fillBuffer in interface CsvCharConsumerIOExceptionCopyright © 2015. All rights reserved.