what is the difference between a buffered stream and a byte array stream?
Streams
Collapse
X
-
They're two completely different beasts: a byte array stream reads bytes directlyOriginally posted by Alewhat is the difference between a buffered stream and a byte array stream?
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,
JosComment
Comment