StreamHandler.SetOutputStream(Stream) Method

Definition

Change the output stream.

[Android.Runtime.Register("setOutputStream", "(Ljava/io/OutputStream;)V", "GetSetOutputStream_Ljava_io_OutputStream_Handler")]
protected virtual void SetOutputStream (System.IO.Stream? out);
[<Android.Runtime.Register("setOutputStream", "(Ljava/io/OutputStream;)V", "GetSetOutputStream_Ljava_io_OutputStream_Handler")>]
abstract member SetOutputStream : System.IO.Stream -> unit
override this.SetOutputStream : System.IO.Stream -> unit

Parameters

out
Stream

New output stream. May not be null.

Attributes

Exceptions

if os is null.

Remarks

Change the output stream.

If there is a current output stream then the Formatter's tail string is written and the stream is flushed and closed. Then the output stream is replaced with the new output stream.

Java documentation for java.util.logging.StreamHandler.setOutputStream(java.io.OutputStream).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to