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