Skip to content

Reading and writing files using Java NIO #232

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jan 14, 2023

Conversation

mkarg
Copy link
Collaborator

@mkarg mkarg commented Jan 14, 2023

This PR spares code lines and potentially improves the performance of reading and writing files by using the new single-shot instructions of Java NIO available since Java 7 instead of the previous loops and readers/writers. There is no need to do this in custom code anymore as the JRE potentially knows the best way to do the job.

@michael-o michael-o merged commit c415448 into codehaus-plexus:master Jan 14, 2023
@mkarg mkarg deleted the readFile branch January 15, 2023 08:09
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants