Performs a final flush() call, then marks the stream as closed, meaning no further data will be written to it.
Performs a final flush() call, then marks the stream as closed, meaning no further data will be written to it.