public final class CsvRow extends Object implements org.simpleflatmapper.lightningcsv.parser.CellConsumer
| Modifier and Type | Field and Description |
|---|---|
protected int |
currentIndex |
protected int[] |
fieldsBoundaries |
protected int |
rowStartMark |
| Constructor and Description |
|---|
CsvRow(CsvColumnKey[] keys,
int maxIndex,
org.simpleflatmapper.lightningcsv.parser.CharBuffer charBuffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(int offset,
int length) |
boolean |
containsOnly(char c) |
void |
end() |
boolean |
endOfRow() |
BigDecimal |
getBigDecimal(int i) |
BigInteger |
getBigInteger(int i) |
boolean |
getBoolean(int i) |
Boolean |
getBoxedBoolean(int i) |
Byte |
getBoxedByte(int i) |
Character |
getBoxedChar(int i) |
Double |
getBoxedDouble(int i) |
Float |
getBoxedFloat(int i) |
Integer |
getBoxedInt(int i) |
Long |
getBoxedLong(int i) |
Short |
getBoxedShort(int i) |
byte |
getByte(int i) |
char |
getChar(int i) |
CharSequence |
getCharSequence(int i) |
double |
getDouble(int i) |
float |
getFloat(int i) |
int |
getIndex(String column) |
int |
getInt(int i) |
CsvColumnKey[] |
getKeys() |
long |
getLong(int i) |
int |
getNbColumns() |
short |
getShort(int i) |
String |
getString(int i) |
UUID |
getUUID(int i) |
boolean |
hasData() |
int |
length(int i) |
void |
newCell(char[] chars,
int offset,
int length) |
static boolean |
parseBoolean(char[] chars,
int offset,
int length) |
static int |
parseInt(char[] s,
int beginIndex,
int endIndex) |
static long |
parseLong(char[] s,
int beginIndex,
int endIndex) |
<T> T |
read(CellValueReader<T> cellValueReader,
int i) |
void |
reset() |
protected int[] fieldsBoundaries
protected int currentIndex
protected int rowStartMark
public CsvRow(CsvColumnKey[] keys, int maxIndex, org.simpleflatmapper.lightningcsv.parser.CharBuffer charBuffer)
public int getIndex(String column)
public CsvColumnKey[] getKeys()
public void reset()
public void addValue(int offset,
int length)
public <T> T read(CellValueReader<T> cellValueReader, int i)
public CharSequence getCharSequence(int i)
public String getString(int i)
public int length(int i)
public byte getByte(int i)
public char getChar(int i)
public short getShort(int i)
public int getInt(int i)
public long getLong(int i)
public float getFloat(int i)
public double getDouble(int i)
public boolean getBoolean(int i)
public static boolean parseBoolean(char[] chars,
int offset,
int length)
public Byte getBoxedByte(int i)
public Short getBoxedShort(int i)
public Character getBoxedChar(int i)
public Integer getBoxedInt(int i)
public Long getBoxedLong(int i)
public Float getBoxedFloat(int i)
public Double getBoxedDouble(int i)
public Boolean getBoxedBoolean(int i)
public BigDecimal getBigDecimal(int i)
public BigInteger getBigInteger(int i)
public UUID getUUID(int i)
public int getNbColumns()
public boolean hasData()
public boolean containsOnly(char c)
public void newCell(char[] chars,
int offset,
int length)
newCell in interface org.simpleflatmapper.lightningcsv.parser.CellConsumerpublic boolean endOfRow()
endOfRow in interface org.simpleflatmapper.lightningcsv.parser.CellConsumerpublic void end()
end in interface org.simpleflatmapper.lightningcsv.parser.CellConsumerpublic static int parseInt(char[] s,
int beginIndex,
int endIndex)
throws NumberFormatException
NumberFormatExceptionpublic static long parseLong(char[] s,
int beginIndex,
int endIndex)
throws NumberFormatException
NumberFormatExceptionCopyright © 2018. All rights reserved.