Class CsvUtils
java.lang.Object
io.deephaven.enterprise.niowrapper.csv.CsvUtils
Created by cwright on 10/19/16.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHeader(BufferedReader input) Loads the header from a curvefit file and returns a map between headings and column number.getHeader(BufferedReader input, boolean stripQuotes) getHeader(BufferedReader input, char separator) getHeader(BufferedReader input, char separator, boolean stripQuotes) static String[]readLine(BufferedReader input) Reads a csv line and returns it split as a string array.static String[]readLine(BufferedReader input, char separator)
-
Constructor Details
-
CsvUtils
public CsvUtils()
-
-
Method Details
-
readLine
Reads a csv line and returns it split as a string array.- Returns:
- split string or null if there is no more data.
- Throws:
IOException
-
readLine
- Throws:
IOException
-
getHeader
Loads the header from a curvefit file and returns a map between headings and column number.- Returns:
- map between headings and column number.
- Throws:
IOException
-
getHeader
public static Map<String,Integer> getHeader(BufferedReader input, boolean stripQuotes) throws IOException - Throws:
IOException
-
getHeader
public static Map<String,Integer> getHeader(BufferedReader input, char separator) throws IOException - Throws:
IOException
-
getHeader
public static Map<String,Integer> getHeader(BufferedReader input, char separator, boolean stripQuotes) throws IOException - Throws:
IOException
-