Class CsvRow

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 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

      public int getIndex(String column)
    • getKeys

      public CsvColumnKey[] getKeys()
    • reset

      public void reset()
    • addValue

      public void addValue(int offset, int length)
    • read

      public <T> T read(CellValueReader<T> cellValueReader, int i)
    • getCharSequence

      public CharSequence getCharSequence(int i)
    • getString

      public String getString(int i)
    • 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

      public Byte getBoxedByte(int i)
    • getBoxedShort

      public Short getBoxedShort(int i)
    • getBoxedChar

      public Character getBoxedChar(int i)
    • getBoxedInt

      public Integer getBoxedInt(int i)
    • getBoxedLong

      public Long getBoxedLong(int i)
    • getBoxedFloat

      public Float getBoxedFloat(int i)
    • getBoxedDouble

      public Double getBoxedDouble(int i)
    • getBoxedBoolean

      public Boolean getBoxedBoolean(int i)
    • getBigDecimal

      public BigDecimal getBigDecimal(int i)
    • getBigInteger

      public BigInteger getBigInteger(int i)
    • getUUID

      public UUID getUUID(int i)
    • 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:
      newCell in interface org.simpleflatmapper.lightningcsv.parser.CellConsumer
    • endOfRow

      public boolean endOfRow()
      Specified by:
      endOfRow in interface org.simpleflatmapper.lightningcsv.parser.CellConsumer
    • end

      public void end()
      Specified by:
      end in interface org.simpleflatmapper.lightningcsv.parser.CellConsumer
    • parseInt

      public static int parseInt(char[] s, int beginIndex, int endIndex) throws NumberFormatException
      Throws:
      NumberFormatException
    • parseLong

      public static long parseLong(char[] s, int beginIndex, int endIndex) throws NumberFormatException
      Throws:
      NumberFormatException