Reading and writing files using Java NIO by mkarg · Pull Request #232 · codehaus-plexus/plexus-utils
Navigation Menu
{{ message }}
codehaus-plexus / plexus-utils Public
- Notifications You must be signed in to change notification settings
- Fork 43
Merged
michael-o merged 2 commits intocodehaus-plexus:masterfrom
Jan 14, 2023Merged
Reading and writing files using Java NIO#232
michael-o merged 2 commits intocodehaus-plexus:masterfrom
Reading and writing files using Java NIO#232
michael-o merged 2 commits intocodehaus-plexus:masterfrom
Conversation
Copy link
Collaborator
mkarg
commented
Jan 14, 2023
mkarg
commented
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.
mkarg added 2 commits
January 11, 2023 17:30michael-o approved these changes Jan 14, 2023
michael-o
merged commit
c415448
into
codehaus-plexus:master
mkarg
deleted the
readFile
branch
olamy
added
the
enhancement
label
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment