java - Who is better in performance filechannel or RandomAccessFile for reading and writing? -


i came across filechannel, big fan of randomaccessfile. wondering why pick filechannel on randomaccessfile reading file , writing content another.

is there specific performance reason? dont want use locking of filechannel purpose believe 1 of reasons why filechannel can used. don't want use bufferreader or suggested in other stackoverflow response.

filechannel api says: region of file may mapped directly memory; large files more efficient invoking usual read or write methods.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -