I know that RandomAccessFile does not use buffering (and unlike in
case of FileInputStream, it obviously cannot be combined with
BufferedInputStream).

I need to read many small chunks of data from random file positions
(which can't be sorted, as they arrive continously), so
RandomAccessFile sounds ideal. My question: the filesystem still does
some buffering, doesn't it? So, while I shouldn't strictly rely on it,
I can still expect that reads that are close to each won't reach the
hardware, will they? (assuming that reading is block-based, so the
filesystem can buffer the blocks that were read)

My application can be installed both on the SD card and on the phone
memory of Android devices. Android is based on linux, but I don't know
how filesystem buffering works and whether it depends on if the read
was from phone memory or the SD card.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to