Originally Posted by
prinnori
I'm new to Java and I'm trying to understand how a BufferedInputStream works. I understand the underlying principle but I still have some questions.
1. Can I control the size of the buffer?
2. When exactly do the system calls occur? After I read all the values in the buffer, or at specific time intervals?
3. Can I perform any operations on the values stored in the buffer or should I copy them into an array, perform the operations and then copy the new values into a BufferedOutputStream?