what is the difference between a buffered stream and a byte array stream?
They're two completely different beasts: a byte array stream reads bytes directly
from an array of bytes, while a buffered stream neads another stream to read its
bytes from. When you ask it to read one or more bytes it reads a whole chunk
of bytes in its buffer and hands out those byte to you whenever you want to read
more bytes; the buffered stream doesn't need to 'ask' the other stream for more
bytes all the time, i.e. it uses its buffer for that purpose.
kind regards,
Jos