Closes the stream, releasing resources related to it. This will also close the individual input and output
streams. Once the stream is closed, all other operations will fail. Closing a stream multiple times is allowed
and will not result in an error.
The
InputStream
to read from.