Replaces the wrapper's internal stream with stream
.
Don't forget, if stream
is not of the same encoding as the old stream, you'll want to call
set_encoding as well.
Note: caller is responsible for its own reference on stream
.
this | |
stream |
a Stream |