There are some descendants of OutputStream
which have inherited the flush()
method.
For example FileOutputStream
does have a flush() method even though it's not buffered. Does it mean that it gets buffered anyway within the same very stream? Otherwise, why should I call flush for a class which is not buffered?
Thanks in advance.
EDIT: As pointed out by Alex S in the below comment, this question has already been answered here.