Reading and writing files using Java NIO by mkarg · Pull Request #232 · codehaus-plexus/plexus-utils

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@michael-o michael-o michael-o approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@mkarg @michael-o @olamy