Module swim.csv
Package swim.csv

Class Csv


  • public final class Csv
    extends Object
    Factory for constructing CSV parsers and writers.
    • Method Detail

      • parser

        public static CsvParser parser​(int delimiter)
      • parseTable

        public static Record parseTable​(String csvString)
      • parseTable

        public static Record parseTable​(String csvString,
                                        int delimiter)
      • parseTable

        public static Record parseTable​(byte[] csvData)
      • parseTable

        public static Record parseTable​(byte[] csvData,
                                        int delimiter)
      • parseTable

        public static Record parseTable​(ByteBuffer csvBuffer,
                                        int delimiter)
      • parseTable

        public static <T,​R,​C> T parseTable​(String csvString,
                                                       CsvHeader<T,​R,​C> header)
      • parseTable

        public static <T,​R,​C> T parseTable​(String csvString,
                                                       CsvHeader<T,​R,​C> header,
                                                       int delimiter)
      • parseTable

        public static <T,​R,​C> T parseTable​(byte[] csvData,
                                                       CsvHeader<T,​R,​C> header)
      • parseTable

        public static <T,​R,​C> T parseTable​(byte[] csvData,
                                                       CsvHeader<T,​R,​C> header,
                                                       int delimiter)
      • parseTable

        public static <T,​R,​C> T parseTable​(ByteBuffer csvBuffer,
                                                       CsvHeader<T,​R,​C> header)
      • parseTable

        public static <T,​R,​C> T parseTable​(ByteBuffer csvBuffer,
                                                       CsvHeader<T,​R,​C> header,
                                                       int delimiter)
      • parseBody

        public static <T,​R,​C> T parseBody​(String csvString,
                                                      CsvHeader<T,​R,​C> header)
      • parseBody

        public static <T,​R,​C> T parseBody​(String csvString,
                                                      CsvHeader<T,​R,​C> header,
                                                      int delimiter)
      • parseBody

        public static <T,​R,​C> T parseBody​(byte[] csvData,
                                                      CsvHeader<T,​R,​C> header)
      • parseBody

        public static <T,​R,​C> T parseBody​(byte[] csvData,
                                                      CsvHeader<T,​R,​C> header,
                                                      int delimiter)
      • parseBody

        public static <T,​R,​C> T parseBody​(ByteBuffer csvBuffer,
                                                      CsvHeader<T,​R,​C> header)
      • parseBody

        public static <T,​R,​C> T parseBody​(ByteBuffer csvBuffer,
                                                      CsvHeader<T,​R,​C> header,
                                                      int delimiter)
      • parseRow

        public static <T,​R,​C> R parseRow​(String csvString,
                                                     CsvHeader<T,​R,​C> header)
      • parseRow

        public static <T,​R,​C> R parseRow​(String csvString,
                                                     CsvHeader<T,​R,​C> header,
                                                     int delimiter)
      • parseRow

        public static <T,​R,​C> R parseRow​(byte[] csvData,
                                                     CsvHeader<T,​R,​C> header)
      • parseRow

        public static <T,​R,​C> R parseRow​(byte[] csvData,
                                                     CsvHeader<T,​R,​C> header,
                                                     int delimiter)
      • parseRow

        public static <T,​R,​C> R parseRow​(ByteBuffer csvBuffer,
                                                     CsvHeader<T,​R,​C> header)
      • parseRow

        public static <T,​R,​C> R parseRow​(ByteBuffer csvBuffer,
                                                     CsvHeader<T,​R,​C> header,
                                                     int delimiter)
      • tableParser

        public static Parser<Record> tableParser​(int delimiter)
      • tableParser

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

        public static <T,​R,​C> Parser<T> tableParser​(CsvHeader<T,​R,​C> header,
                                                                int delimiter)
      • headerParser

        public static <T,​R,​C> Parser<CsvHeader<T,​R,​C>> headerParser​(CsvHeader<T,​R,​C> header)
      • headerParser

        public static <T,​R,​C> Parser<CsvHeader<T,​R,​C>> headerParser​(CsvHeader<T,​R,​C> header,
                                                                                            int delimiter)
      • bodyParser

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

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

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

        public static <T,​R,​C> Parser<R> rowParser​(CsvHeader<T,​R,​C> header,
                                                              int delimiter)