Udostępnij za pośrednictwem


StreamResult.Writer Property

Definition

Get the character stream that was set with setWriter. -or- Set the writer that is to receive the result.

public virtual Java.IO.Writer? Writer { [Android.Runtime.Register("getWriter", "()Ljava/io/Writer;", "GetGetWriterHandler")] get; [Android.Runtime.Register("setWriter", "(Ljava/io/Writer;)V", "GetSetWriter_Ljava_io_Writer_Handler")] set; }
[<get: Android.Runtime.Register("getWriter", "()Ljava/io/Writer;", "GetGetWriterHandler")>]
[<set: Android.Runtime.Register("setWriter", "(Ljava/io/Writer;)V", "GetSetWriter_Ljava_io_Writer_Handler")>]
member this.Writer : Java.IO.Writer with get, set

Property Value

The character stream that was set with setWriter, or null if setWriter or the Writer constructor was not called.

Attributes

Remarks

Property getter documentation:

Get the character stream that was set with setWriter.

Java documentation for javax.xml.transform.stream.StreamResult.getWriter().

Property setter documentation:

Set the writer that is to receive the result. Normally, a stream should be used rather than a writer, so that the transformer may use instructions contained in the transformation instructions to control the encoding. However, there are times when it is useful to write to a writer, such as when using a StringWriter.

Java documentation for javax.xml.transform.stream.StreamResult.setWriter(java.io.Writer).

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