Suppose the file system block size is 4KB, according to my understanding, that means all IO will be at size 4KB. I have 2 questions:
- When using java.io API, say FileReader, it doesn't read one char each time, instead, it reads 4KB each time into memory. Is it right?
- If the above is true, then it makes no sense to set buffer size smaller than 4KB when using something like BufferedReader, right? Because at minimum we will fetch 4KB into memory every time.
Thank you.