Java.Util.Properties.StoreToXML Method
Writes all properties stored in this instance into the OutputStream in XML representation.

Syntax

[Android.Runtime.Register("storeToXML", "(Ljava/io/OutputStream;Ljava/lang/String;Ljava/lang/String;)V", "GetStoreToXML_Ljava_io_OutputStream_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual void StoreToXML (System.IO.Stream os, string comment, string encoding)

Parameters

os
the OutputStream to write to.
comment
the comment to add. If null, no comment is added.
encoding
the code identifying the encoding that should be used to write into the OutputStream.

Exceptions

TypeReason
Java.IO.IOExceptionif an error occurs during writing to the output.

Remarks

Writes all properties stored in this instance into the OutputStream in XML representation. The DOCTYPE is

xml Example

 <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
 
If the comment is null, no comment is added to the output. The parameter encoding defines which encoding should be used. The OutputStream is not closed at the end.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1