set_stream


Description:

public void set_stream (Stream stream)

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.

Parameters:

this

a DataWrapper

stream

a Stream