Method | Description | |
---|---|---|
Append ( String plain ) : void |
This is used to buffer characters to the output stream without any translation. This is used when buffering the start tags so that they can be reset without affecting the resulting document.
|
|
Append ( char ch ) : void |
This is used to buffer a character to the output stream without any translation. This is used when buffering the start tags so that they can be reset without affecting the resulting document.
|
|
Data ( String value ) : void |
This method is used to write the specified text as a CDATA block within the XML element. This is typically used when the value is large or if it must be preserved in a format that will not be affected by other XML parsers. For large text values this is also faster than performing a character by character escaping.
|
|
Escape ( String value ) : void |
This is used to write the specified value to the output with translation to any symbol characters or non text characters. This will translate the symbol characters such as "&", ">", "<", and """. This also writes any non text and non symbol characters as integer values like "{".
|
|
Escape ( char ch ) : void |
This is used to write the specified value to the output with translation to any symbol characters or non text characters. This will translate the symbol characters such as "&", ">", "<", and """. This also writes any non text and non symbol characters as integer values like "{".
|
|
Flush ( ) : void |
This is used to flush the writer when the XML if it has been buffered. The flush method is used by the node writer after an end element has been written. Flushing ensures that buffering does not affect the result of the node writer.
|
|
Formatter ( |
Constructor for the
|
|
IsEmpty ( String value ) : bool |
This method is used to determine if a root annotation value is an empty value. Rather than determining if a string is empty be comparing it to an empty string this method allows for the value an empty string represents to be changed in future.
|
|
IsText ( char ch ) : bool |
This is used to determine if the specified character is a text character. If the character specified is not a text value then this returls true, otherwise this returns false.
|
|
Symbol ( char ch ) : char[] |
This is used to convert the specified character to an XML text symbol if the specified character can be converted. If the character cannot be converted to a symbol null is returned.
|
|
Unicode ( char ch ) : String |
This is used to convert the the specified character to unicode. This will simply get the decimal representation of the given character as a string so it can be written as an escape.
|
|
Write ( String plain ) : void |
This is used to write plain text to the output stream without any translation. This is used when writing the start tags and end tags, this is also used to write attribute names.
|
|
Write ( String plain, String prefix ) : void |
This is used to write plain text to the output stream without any translation. This is used when writing the start tags and end tags, this is also used to write attribute names.
|
|
Write ( char ch ) : void |
This is used to write a character to the output stream without any translation. This is used when writing the start tags and end tags, this is also used to write attribute names.
|
|
WriteAttribute ( String name, String value, String prefix ) : void |
This is used to write a name value attribute pair. If the last tag written was not a start tag then this throws an exception. All attribute values written are enclosed in double quotes.
|
|
WriteComment ( String comment ) : void |
This is used to write any comments that have been set. The comment will typically be written at the start of an element to describe the purpose of the element or include debug data that can be used to determine any issues in serialization.
|
|
WriteEnd ( String name, String prefix ) : void |
This is used to write an end element tag to the writer. This will close the element with a short
|
|
WriteNamespace ( String reference, String prefix ) : void |
This is used to write the namespace to the element. This will write the special attribute using the prefix and reference specified. This will escape the reference if it is required.
|
|
WriteProlog ( ) : void |
This is used to write a prolog to the specified output. This is only written if the specified
|
|
WriteStart ( String name, String prefix ) : void |
This method is used to write a start tag for an element. If a start tag was written before this then it is closed. Before the start tag is written an indent is generated and placed in front of the tag, this is done for all but the first start tag.
|
|
WriteText ( String text ) : void |
This is used to write the specified text value to the writer. If the last tag written was a start tag then it is closed. By default this will escape any illegal XML characters.
|
|
WriteText ( String text, Mode mode ) : void |
This is used to write the specified text value to the writer. If the last tag written was a start tag then it is closed. This will use the output mode specified.
|
public Append ( String plain ) : void | ||
plain | String | /// This is the string that is to be buffered. /// |
return | void |
public Append ( char ch ) : void | ||
ch | char | /// This is the character to be written to the output. /// |
return | void |
public Data ( String value ) : void | ||
value | String | /// This is the text value to be written as CDATA. /// |
return | void |
public Escape ( String value ) : void | ||
value | String | /// The text value to be escaped and written. /// |
return | void |
public Escape ( char ch ) : void | ||
ch | char | /// The text character to be escaped and written. /// |
return | void |
public Formatter ( |
||
result | /// This is where the XML should be written to. /// | |
format | /// This is the format object to use. /// | |
return | System.IO |
public IsEmpty ( String value ) : bool | ||
value | String | /// This is the value to determine if it is empty. /// |
return | bool |
public IsText ( char ch ) : bool | ||
ch | char | /// This is the character to be evaluated as text. /// |
return | bool |
public Symbol ( char ch ) : char[] | ||
ch | char | /// This is the character that is to be converted. /// |
return | char[] |
public Unicode ( char ch ) : String | ||
ch | char | /// This is the character that is to be converted. /// |
return | String |
public Write ( String plain ) : void | ||
plain | String | /// This is the text to be written to the output. /// |
return | void |
public Write ( String plain, String prefix ) : void | ||
plain | String | /// This is the text to be written to the output. /// |
prefix | String | /// This is the namespace prefix to be written. /// |
return | void |
public Write ( char ch ) : void | ||
ch | char | /// This is the character to be written to the output. /// |
return | void |
public WriteAttribute ( String name, String value, String prefix ) : void | ||
name | String | /// This is the name of the attribute to be written. /// |
value | String | /// This is the value to assigne to the attribute. /// |
prefix | String | |
return | void |
public WriteComment ( String comment ) : void | ||
comment | String | /// This is the comment that is to be written. /// |
return | void |
public WriteEnd ( String name, String prefix ) : void | ||
name | String | /// This is the name of the element to be closed. /// |
prefix | String | |
return | void |
public WriteNamespace ( String reference, String prefix ) : void | ||
reference | String | /// This is the namespace URI reference to use. /// |
prefix | String | /// This is the prefix to used for the namespace. /// |
return | void |
public WriteStart ( String name, String prefix ) : void | ||
name | String | /// This is the name of the start tag to be written. /// |
prefix | String | |
return | void |
public WriteText ( String text ) : void | ||
text | String | /// This is the text to write to the output. /// |
return | void |
public WriteText ( String text, Mode mode ) : void | ||
text | String | /// This is the text to write to the output. /// |
mode | Mode | |
return | void |