Skip to content

Commit ddcf2cf

Browse files
committed
[CSV-225] Parse method should avoid creating a redundant BufferedReader.
1 parent f368f64 commit ddcf2cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/csv/CSVParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public static CSVParser parse(final InputStream inputStream, final Charset chars
203203
public static CSVParser parse(final Path path, final Charset charset, final CSVFormat format) throws IOException {
204204
Assertions.notNull(path, "path");
205205
Assertions.notNull(format, "format");
206-
return parse(Files.newBufferedReader(path, charset), format);
206+
return parse(Files.newInputStream(path), charset, format);
207207
}
208208

209209
/**

0 commit comments

Comments
 (0)