public class StreamCSV extends Object
| Modifier and Type | Method and Description |
|---|---|
static Stream<CsvRow> |
streamCSV(Path file,
char... separators)
|
static Stream<CsvRow> |
streamCSV(Path file,
long skip,
char... separators)
|
static Stream<CsvRow> |
streamCSV(Path file,
long skip,
Charset charset,
boolean unzip,
boolean autoSep,
char... separators)
|
static Stream<CsvRow> |
streamCSV(Path file,
long skip,
Charset charset,
boolean unzip,
char... separators)
|
static Stream<CsvRow> |
streamCSV(Path file,
long skip,
Charset charset,
char... separators)
|
public static Stream<CsvRow> streamCSV(Path file, char... separators)
Stream<CsvRow>' must be closed with 'try'-with-resources statement
The returned stream encapsulates a Reader. If timely
disposal of file system resources is required, the try-with-resources
construct should be used to ensure that the stream's
close method is invoked after the stream operations
are completed.
See example: CsvReader.readAllRows(Path)
file - the path to the file - or path to a resourceseparators - column split parameter (no regex)CsvRow from the file as a Streampublic static Stream<CsvRow> streamCSV(Path file, long skip, char... separators)
Stream<CsvRow>' must be closed with 'try'-with-resources statement
The returned stream encapsulates a Reader. If timely
disposal of file system resources is required, the try-with-resources
construct should be used to ensure that the stream's
close method is invoked after the stream operations
are completed.
See example: CsvReader.readAllRows(Path)
file - the path to the file - or path to a resourceskip - lines to skip while reading csvseparators - column split parameter (no regex)CsvRow from the file as a Streampublic static Stream<CsvRow> streamCSV(Path file, long skip, Charset charset, char... separators)
Stream<CsvRow>' must be closed with 'try'-with-resources statement
The returned stream encapsulates a Reader. If timely
disposal of file system resources is required, the try-with-resources
construct should be used to ensure that the stream's
close method is invoked after the stream operations
are completed.
See example: CsvReader.readAllRows(Path)
file - The path to the file - or path to a resourceskip - lines to skip while reading csvcharset - The charset to use for decoding the CSV fileseparators - Splits the CSV rows at the given separator CsvRow from the file as a Streampublic static Stream<CsvRow> streamCSV(Path file, long skip, Charset charset, boolean unzip, char... separators)
Stream<CsvRow>' must be closed with 'try'-with-resources statement
The returned stream encapsulates a Reader. If timely
disposal of file system resources is required, the try-with-resources
construct should be used to ensure that the stream's
close method is invoked after the stream operations
are completed
See example: CsvReader.readAllRows(Path)
file - The path to the file - or path to a resourceskip - 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 CsvRow from the file as a Streampublic static Stream<CsvRow> streamCSV(Path file, long skip, Charset charset, boolean unzip, boolean autoSep, char... separators)
Stream<CsvRow>' must be closed with 'try'-with-resources statement
The returned stream encapsulates a Reader. If timely
disposal of file system resources is required, the try-with-resources
construct should be used to ensure that the stream's
close method is invoked after the stream operations
are completed
See example: CsvReader.readAllRows(Path)
file - The path to the file - or path to a resourceskip - 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 CsvRow from the file as a StreamCopyright © 2023. All rights reserved.