garydgregory commented on PR #442: URL: https://github.com/apache/commons-io/pull/442#issuecomment-1481119044
> > Hello @li-keguo Why not use Java's Files.lines() APIs instead of these? > > HI @garydgregory It is a good idea to implement filters using Files.lines. > > ```java > Files.lines(file.toPath(), charset) > .filter(filter) > .collect(Collectors.toList()); > ``` > > However, this is not consumer-friendly. The stream intermediate process does not trigger execution. The above code I would claim is perfectly normal, so I do not see a need for these new APIs. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
