close

fun close()

Close this stream in both directions.

You must call this when finished with the stream.