public class ConsumeCSV extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
consumeCsv(Path file,
Consumer<CsvIndexRow> consumer,
char... separators) |
static void |
consumeCsv(Path file,
Consumer<CsvIndexRow> consumer,
long skip,
char... separators) |
static void |
consumeCsv(Path file,
Consumer<CsvIndexRow> consumer,
long skip,
Charset charset,
boolean unzip,
boolean autoSep,
char... separators) |
static void |
consumeCsv(Path file,
Consumer<CsvIndexRow> consumer,
long skip,
Charset charset,
boolean unzip,
char... separators) |
static void |
consumeCsv(Path file,
Consumer<CsvIndexRow> consumer,
long skip,
Charset charset,
char... separators)
See example:
CsvReader.readAllRows(Path) |
public static void consumeCsv(Path file, Consumer<CsvIndexRow> consumer, char... separators)
file - the path to the file - or path to a resourceconsumer - consumer to progress the CsvRowseparators - column split parameter (no regex)public static void consumeCsv(Path file, Consumer<CsvIndexRow> consumer, long skip, char... separators)
file - the path to the file - or path to a resourceconsumer - consumer to progress the CsvRowskip - lines to skip while reading csvseparators - column split parameter (no regex)public static void consumeCsv(Path file, Consumer<CsvIndexRow> consumer, long skip, Charset charset, char... separators)
CsvReader.readAllRows(Path)file - The path to the file - or path to a resourceconsumer - consumer to progress the CsvRowskip - lines to skip while reading csvcharset - The charset to use for decoding the CSV fileseparators - Splits the CSV rows at the given separator public static void consumeCsv(Path file, Consumer<CsvIndexRow> consumer, long skip, Charset charset, boolean unzip, char... separators)
file - The path to the file - or path to a resourceconsumer - consumer to progress the CsvRowskip - lines to skip while reading csvcharset - The charset to use for decoding the CSV fileunzip - On true detects and unzips the CSV file automaticallyseparators - Splits the CSV rows at the given separator public static void consumeCsv(Path file, Consumer<CsvIndexRow> consumer, long skip, Charset charset, boolean unzip, boolean autoSep, char... separators)
file - The path to the file - or path to a resourceconsumer - consumer to progress the CsvRowskip - lines to skip while reading csvcharset - The charset to use for decoding the CSV fileunzip - On true detects and unzips the CSV file automaticallyautoSep - On true detects the separator automaticallyseparators - Splits the CSV rows at the given separator Copyright © 2023. All rights reserved.