Most streams (input/outpt) are buffered. So what this advice says is that if you are done with the communication you should flush and propably close
the stream so all buffered data is sending finally to the end point.
If no (severe security) bug is involved the flush
or close
method only sends the data to the before established connection (socket). The socket is unique between end points. No other endpoint will get the data.