Function Stream.close

Closes the stream. Closed stream cannot be read or written any more

abstract void close();