Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.5
-
None
Description
A redundant BufferedReader is created as the inner reader of ExtendedBufferedReader when the CSVParser is created with:
CSVParser#parse(Path, Charset, CSVFormat)
Simply change over from Files#newBufferedReader to Files#newInputStream
public static CSVParser parse(final Path path, final Charset charset, final CSVFormat format) throws IOException {
Assertions.notNull(path, "path");
Assertions.notNull(format, "format");
return parse(Files.newInputStream(path), charset, format);
}