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