Class Csv


  • public class Csv
    extends Object
    • Constructor Detail

      • Csv

        public Csv()
    • Method Detail

      • toCsv

        public static String toCsv​(Object jsonValue)
        Write the contents of the jsonValue to CSV formatted string following RFC 4180. Note data in all fields is enclosed in double quotes.

        Additionally, since CSV is a flat file format, nesting of data is not directly supported. That is, field values having type Bindings or List, although legal Bindings value types, have no representation in CSV. Currently, such values are simply converted to strings via toString(), however this may change in a future revision.

      • toCsv

        public static void toCsv​(Object jsonValue,
                                 String name,
                                 StringBuilder target,
                                 int indent)
        Write the contents of the jsonValue to CSV formatted string following RFC 4180. Note data in all fields is enclosed in double quotes.

        Additionally, since CSV is a flat file format, nesting of data is not directly supported. That is, field values having type Bindings or List, although legal Bindings value types, have no representation in CSV. Currently, such values are simply converted to strings via toString(), however this may change in a future revision.

      • fromCsv

        public static Object fromCsv​(String csv,
                                     boolean withTokens)