public class UtilCsv extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getCsvColumnNames(String line,
String delimiter)
Extract the CSV column names from s string, typically the first line of a file.
|
static void |
parseCsv(String s,
Consumer<String> f) |
public static List<String> getCsvColumnNames(String line, String delimiter) throws IOException
line - the file content asa stringdelimiter - the csv delimiterIOException - IOExceptionpublic static void parseCsv(String s, Consumer<String> f) throws IOException
IOExceptionCopyright © 2014–2023. All rights reserved.