public abstract class CharConsumer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
_currentIndex |
protected int |
_currentState |
protected CharBuffer |
csvBuffer |
protected static int |
ESCAPED |
protected static int |
LAST_CHAR_WAS_CR |
protected static int |
LAST_CHAR_WAS_SEPARATOR |
protected static int |
NONE |
protected static int |
TURN_OFF_LAST_CHAR_MASK |
| Constructor and Description |
|---|
CharConsumer(CharBuffer csvBuffer) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
consumeAllBuffer(CellConsumer cellConsumer) |
abstract boolean |
consumeToNextRow(CellConsumer cellConsumer) |
protected boolean |
endOfRow(int currentIndex,
CellConsumer cellConsumer) |
void |
finish(CellConsumer cellConsumer) |
protected abstract void |
newCell(int end,
CellConsumer cellConsumer) |
int |
refillBuffer() |
protected static final int LAST_CHAR_WAS_SEPARATOR
protected static final int LAST_CHAR_WAS_CR
protected static final int ESCAPED
protected static final int NONE
protected static final int TURN_OFF_LAST_CHAR_MASK
protected final CharBuffer csvBuffer
protected int _currentIndex
protected int _currentState
public CharConsumer(CharBuffer csvBuffer)
public abstract void consumeAllBuffer(CellConsumer cellConsumer)
public abstract boolean consumeToNextRow(CellConsumer cellConsumer)
protected abstract void newCell(int end,
CellConsumer cellConsumer)
protected final boolean endOfRow(int currentIndex,
CellConsumer cellConsumer)
public final void finish(CellConsumer cellConsumer)
public final int refillBuffer()
throws IOException
IOExceptionCopyright © 2016. All rights reserved.