The close() method closes the stream and releases any resources associated with the stream.
close()
Once the stream is closed attempts to write to it throw IOExceptions.
IOException