- java.lang.Object
-
- swim.csv.parser.CsvParser
-
public class CsvParser extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
delimiter
-
Constructor Summary
Constructors Constructor Description CsvParser(int delimiter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,R,C>
Parser<T>bodyParser(CsvHeader<T,R,C> header)
int
delimiter()
<T,R,C>
Parser<CsvHeader<T,R,C>>headerParser(CsvHeader<T,R,C> header)
boolean
isDelimiter(int c)
<T,R,C>
Parser<T>parseBody(Input input, CsvHeader<T,R,C> header)
<T,R,C>
TparseBodyBuffer(CsvHeader<T,R,C> header, ByteBuffer buffer)
<T,R,C>
TparseBodyData(CsvHeader<T,R,C> header, byte[] data)
<T,R,C>
TparseBodyString(CsvHeader<T,R,C> header, String string)
<C> Parser<C>
parseCell(Input input, CsvCol<C> col)
<T,R,C>
Parser<CsvHeader<T,R,C>>parseHeader(Input input, CsvHeader<T,R,C> header)
<T,R,C>
Parser<R>parseRow(Input input, CsvHeader<T,R,C> header)
<T,R,C>
RparseRowBuffer(CsvHeader<T,R,C> header, ByteBuffer buffer)
<T,R,C>
RparseRowData(CsvHeader<T,R,C> header, byte[] data)
<T,R,C>
RparseRowString(CsvHeader<T,R,C> header, String string)
<T,R,C>
Parser<T>parseTable(Input input, CsvHeader<T,R,C> header)
<T,R,C>
TparseTableBuffer(CsvHeader<T,R,C> header, ByteBuffer buffer)
<T,R,C>
TparseTableData(CsvHeader<T,R,C> header, byte[] data)
<T,R,C>
TparseTableString(CsvHeader<T,R,C> header, String string)
<T,R,C>
Parser<R>rowParser(CsvHeader<T,R,C> header)
<T,R,C>
Parser<T>tableParser(CsvHeader<T,R,C> header)
-
-
-
Method Detail
-
delimiter
public final int delimiter()
-
isDelimiter
public boolean isDelimiter(int c)
-
parseHeader
public <T,R,C> Parser<CsvHeader<T,R,C>> parseHeader(Input input, CsvHeader<T,R,C> header)
-
parseTableData
public <T,R,C> T parseTableData(CsvHeader<T,R,C> header, byte[] data)
-
parseTableBuffer
public <T,R,C> T parseTableBuffer(CsvHeader<T,R,C> header, ByteBuffer buffer)
-
parseBodyData
public <T,R,C> T parseBodyData(CsvHeader<T,R,C> header, byte[] data)
-
parseBodyBuffer
public <T,R,C> T parseBodyBuffer(CsvHeader<T,R,C> header, ByteBuffer buffer)
-
parseRowData
public <T,R,C> R parseRowData(CsvHeader<T,R,C> header, byte[] data)
-
parseRowBuffer
public <T,R,C> R parseRowBuffer(CsvHeader<T,R,C> header, ByteBuffer buffer)
-
-