C# Class Encog.Parse.Tags.Write.WriteTags

Class used to write out tags, such as XML or HTML.
Datei anzeigen Open project: encog/encog-silverlight-core

Public Methods

Method Description
AddAttribute ( String name, String v ) : void

Add an attribute to be written with the next tag.

AddCDATA ( String text ) : void

Add CDATA to the output stream. XML allows a large block of unformatted text to be added as a CDATA tag.

AddProperty ( String name, String str ) : void

Add a property as a string. A property is a value enclosed in two tags.

AddProperty ( String name, double d ) : void

Add a property as a double. A property is a value enclosed in two tags.

AddProperty ( String name, double array, int len ) : void

Write an array as a property.

AddProperty ( String name, int i ) : void

Add a property as an integer. A property is a value enclosed in two tags.

AddProperty ( String name, int array, int len ) : void

Write an array as a property.

AddText ( String text ) : void

Add text.

BeginDocument ( ) : void

Called to begin the document.

BeginTag ( String name ) : void

Begin a tag with the specified name.

Close ( ) : void

Close this object.

EndDocument ( ) : void

End the document.

EndTag ( ) : void

End the current tag.

EndTag ( String name ) : void

End a tag, require that we are ending the specified tag.

WriteTags ( Stream output ) : System

Construct an object to write tags.

Method Details

AddAttribute() public method

Add an attribute to be written with the next tag.
public AddAttribute ( String name, String v ) : void
name String The name of the attribute.
v String The value of the attribute.
return void

AddCDATA() public method

Add CDATA to the output stream. XML allows a large block of unformatted text to be added as a CDATA tag.
public AddCDATA ( String text ) : void
text String The text to add.
return void

AddProperty() public method

Add a property as a string. A property is a value enclosed in two tags.
public AddProperty ( String name, String str ) : void
name String The name of the enclosing tags.
str String The value to store.
return void

AddProperty() public method

Add a property as a double. A property is a value enclosed in two tags.
public AddProperty ( String name, double d ) : void
name String The name of the enclosing tags.
d double The value to store.
return void

AddProperty() public method

Write an array as a property.
public AddProperty ( String name, double array, int len ) : void
name String The name of the property.
array double The array to write.
len int The length of the array to write.
return void

AddProperty() public method

Add a property as an integer. A property is a value enclosed in two tags.
public AddProperty ( String name, int i ) : void
name String The name of the enclosing tags.
i int The value to store.
return void

AddProperty() public method

Write an array as a property.
public AddProperty ( String name, int array, int len ) : void
name String The name of the property.
array int The array to write.
len int The length of the array to write.
return void

AddText() public method

Add text.
public AddText ( String text ) : void
text String The text to add.
return void

BeginDocument() public method

Called to begin the document.
public BeginDocument ( ) : void
return void

BeginTag() public method

Begin a tag with the specified name.
public BeginTag ( String name ) : void
name String The tag to begin.
return void

Close() public method

Close this object.
public Close ( ) : void
return void

EndDocument() public method

End the document.
public EndDocument ( ) : void
return void

EndTag() public method

End the current tag.
public EndTag ( ) : void
return void

EndTag() public method

End a tag, require that we are ending the specified tag.
public EndTag ( String name ) : void
name String The tag to be ending.
return void

WriteTags() public method

Construct an object to write tags.
public WriteTags ( Stream output ) : System
output Stream THe output stream.
return System