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
Post a Comment