Aracılığıyla paylaş


Properties.StoreToXML Method

Definition

Overloads

StoreToXML(Stream, String)

Emits an XML document representing all of the properties contained in this table.

StoreToXML(Stream, String, String)

Emits an XML document representing all of the properties contained in this table, using the specified encoding.

StoreToXML(Stream, String)

Emits an XML document representing all of the properties contained in this table.

[Android.Runtime.Register("storeToXML", "(Ljava/io/OutputStream;Ljava/lang/String;)V", "GetStoreToXML_Ljava_io_OutputStream_Ljava_lang_String_Handler")]
public virtual void StoreToXML (System.IO.Stream? os, string? comment);
[<Android.Runtime.Register("storeToXML", "(Ljava/io/OutputStream;Ljava/lang/String;)V", "GetStoreToXML_Ljava_io_OutputStream_Ljava_lang_String_Handler")>]
abstract member StoreToXML : System.IO.Stream * string -> unit
override this.StoreToXML : System.IO.Stream * string -> unit

Parameters

os
Stream

the output stream on which to emit the XML document.

comment
String

a description of the property list, or null if no comment is desired.

Attributes

Exceptions

if an error occurs during writing to the output.

Remarks

Emits an XML document representing all of the properties contained in this table.

An invocation of this method of the form props.storeToXML(os, comment) behaves in exactly the same way as the invocation props.storeToXML(os, comment, "UTF-8");.

Added in 1.5.

Java documentation for java.util.Properties.storeToXML(java.io.OutputStream, java.lang.String).

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

StoreToXML(Stream, String, String)

Emits an XML document representing all of the properties contained in this table, using the specified encoding.

[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);
[<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")>]
abstract member StoreToXML : System.IO.Stream * string * string -> unit
override this.StoreToXML : System.IO.Stream * string * string -> unit

Parameters

os
Stream

the output stream on which to emit the XML document.

comment
String

a description of the property list, or null if no comment is desired.

encoding
String

the name of a supported

                         character encoding
Attributes

Exceptions

if an error occurs during writing to the output.

Remarks

Emits an XML document representing all of the properties contained in this table, using the specified encoding.

The XML document will have the following DOCTYPE declaration:

&lt;!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"&gt;

If the specified comment is null then no comment will be stored in the document.

An implementation is required to support writing of XML documents that use the "UTF-8" or "UTF-16" encoding. An implementation may support additional encodings.

The specified stream remains open after this method returns.

Added in 1.5.

Java documentation for java.util.Properties.storeToXML(java.io.OutputStream, java.lang.String, java.lang.String).

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