Module swim.csv

Class CsvParser


  • public class CsvParser
    extends Object
    • Field Detail

      • delimiter

        protected final int delimiter
    • Constructor Detail

      • CsvParser

        public CsvParser​(int delimiter)
    • Method Detail

      • delimiter

        public final int delimiter()
      • isDelimiter

        public boolean isDelimiter​(int c)
      • parseTable

        public <T,​R,​C> Parser<T> parseTable​(Input input,
                                                        CsvHeader<T,​R,​C> header)
      • parseBody

        public <T,​R,​C> Parser<T> parseBody​(Input input,
                                                       CsvHeader<T,​R,​C> header)
      • parseRow

        public <T,​R,​C> Parser<R> parseRow​(Input input,
                                                      CsvHeader<T,​R,​C> header)
      • tableParser

        public <T,​R,​C> Parser<T> tableParser​(CsvHeader<T,​R,​C> header)
      • bodyParser

        public <T,​R,​C> Parser<T> bodyParser​(CsvHeader<T,​R,​C> header)
      • rowParser

        public <T,​R,​C> Parser<R> rowParser​(CsvHeader<T,​R,​C> header)
      • parseTableString

        public <T,​R,​C> T parseTableString​(CsvHeader<T,​R,​C> header,
                                                      String string)
      • 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)
      • parseBodyString

        public <T,​R,​C> T parseBodyString​(CsvHeader<T,​R,​C> header,
                                                     String string)
      • 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)
      • parseRowString

        public <T,​R,​C> R parseRowString​(CsvHeader<T,​R,​C> header,
                                                    String string)
      • 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)