java.lang.Object
org.simpleflatmapper.csv.CsvRow
- All Implemented Interfaces:
org.simpleflatmapper.lightningcsv.parser.CellConsumer
public final class CsvRow
extends Object
implements org.simpleflatmapper.lightningcsv.parser.CellConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected int[]protected int -
Constructor Summary
ConstructorsConstructorDescriptionCsvRow(CsvColumnKey[] keys, int maxIndex, org.simpleflatmapper.lightningcsv.parser.CharBuffer charBuffer) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(int offset, int length) booleancontainsOnly(char c) voidend()booleanendOfRow()getBigDecimal(int i) getBigInteger(int i) booleangetBoolean(int i) getBoxedBoolean(int i) getBoxedByte(int i) getBoxedChar(int i) getBoxedDouble(int i) getBoxedFloat(int i) getBoxedInt(int i) getBoxedLong(int i) getBoxedShort(int i) bytegetByte(int i) chargetChar(int i) getCharSequence(int i) doublegetDouble(int i) floatgetFloat(int i) intintgetInt(int i) getKeys()longgetLong(int i) intshortgetShort(int i) getString(int i) getUUID(int i) booleanhasData()intlength(int i) voidnewCell(char[] chars, int offset, int length) static booleanparseBoolean(char[] chars, int offset, int length) static intparseInt(char[] s, int beginIndex, int endIndex) static longparseLong(char[] s, int beginIndex, int endIndex) <T> Tread(CellValueReader<T> cellValueReader, int i) voidreset()
-
Field Details
-
fieldsBoundaries
protected int[] fieldsBoundaries -
currentIndex
protected int currentIndex -
rowStartMark
protected int rowStartMark
-
-
Constructor Details
-
CsvRow
public CsvRow(CsvColumnKey[] keys, int maxIndex, org.simpleflatmapper.lightningcsv.parser.CharBuffer charBuffer)
-
-
Method Details
-
getIndex
-
getKeys
-
reset
public void reset() -
addValue
public void addValue(int offset, int length) -
read
-
getCharSequence
-
getString
-
length
public int length(int i) -
getByte
public byte getByte(int i) -
getChar
public char getChar(int i) -
getShort
public short getShort(int i) -
getInt
public int getInt(int i) -
getLong
public long getLong(int i) -
getFloat
public float getFloat(int i) -
getDouble
public double getDouble(int i) -
getBoolean
public boolean getBoolean(int i) -
parseBoolean
public static boolean parseBoolean(char[] chars, int offset, int length) -
getBoxedByte
-
getBoxedShort
-
getBoxedChar
-
getBoxedInt
-
getBoxedLong
-
getBoxedFloat
-
getBoxedDouble
-
getBoxedBoolean
-
getBigDecimal
-
getBigInteger
-
getUUID
-
getNbColumns
public int getNbColumns() -
hasData
public boolean hasData() -
containsOnly
public boolean containsOnly(char c) -
newCell
public void newCell(char[] chars, int offset, int length) - Specified by:
newCellin interfaceorg.simpleflatmapper.lightningcsv.parser.CellConsumer
-
endOfRow
public boolean endOfRow()- Specified by:
endOfRowin interfaceorg.simpleflatmapper.lightningcsv.parser.CellConsumer
-
end
public void end()- Specified by:
endin interfaceorg.simpleflatmapper.lightningcsv.parser.CellConsumer
-
parseInt
- Throws:
NumberFormatException
-
parseLong
- Throws:
NumberFormatException
-