C# Class System.Xml.XmlEventCache

Caches sequence of XmlEvents so that they can be replayed later.
Inheritance: XmlRawWriter
显示文件 Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
Close ( ) : void
EndEvents ( ) : void
EventsToString ( ) : string

Concatenate all element text and atomic value events and return the resulting string.

EventsToWriter ( XmlWriter writer ) : void

Replay all cached events to an XmlWriter.

Flush ( ) : void
WriteBase64 ( byte buffer, int index, int count ) : void
WriteBinHex ( byte buffer, int index, int count ) : void
WriteCData ( string text ) : void
WriteCharEntity ( char ch ) : void
WriteChars ( char buffer, int index, int count ) : void
WriteComment ( string text ) : void
WriteDocType ( string name, string pubid, string sysid, string subset ) : void
WriteEndAttribute ( ) : void
WriteEntityRef ( string name ) : void
WriteProcessingInstruction ( string name, string text ) : void
WriteRaw ( char buffer, int index, int count ) : void
WriteRaw ( string data ) : void
WriteStartAttribute ( string prefix, string localName, string ns ) : void
WriteStartElement ( string prefix, string localName, string ns ) : void
WriteString ( string text ) : void
WriteSurrogateCharEntity ( char lowChar, char highChar ) : void
WriteValue ( object value ) : void

All other WriteValue methods are implemented by XmlWriter to delegate to WriteValue(object) or WriteValue(string), so only these two methods need to be implemented.

WriteValue ( string value ) : void
WriteWhitespace ( string ws ) : void
XmlEventCache ( string baseUri, bool hasRootNode ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
AddEvent ( XmlEventType eventType ) : void
AddEvent ( XmlEventType eventType, object o ) : void
AddEvent ( XmlEventType eventType, string s1 ) : void
AddEvent ( XmlEventType eventType, string s1, string s2 ) : void
AddEvent ( XmlEventType eventType, string s1, string s2, string s3 ) : void
AddEvent ( XmlEventType eventType, string s1, string s2, string s3, object o ) : void
NewEvent ( ) : int
StartElementContent ( ) : void
ToBytes ( byte buffer, int index, int count ) : byte[]

Create a standalone buffer that doesn't need an index or count passed along with it.

WriteEndBase64 ( ) : void
WriteEndElement ( string prefix, string localName, string ns ) : void
WriteFullEndElement ( string prefix, string localName, string ns ) : void
WriteNamespaceDeclaration ( string prefix, string ns ) : void
WriteXmlDeclaration ( XmlStandalone standalone ) : void
WriteXmlDeclaration ( string xmldecl ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EndEvents() public method

public EndEvents ( ) : void
return void

EventsToString() public method

Concatenate all element text and atomic value events and return the resulting string.
public EventsToString ( ) : string
return string

EventsToWriter() public method

Replay all cached events to an XmlWriter.
public EventsToWriter ( XmlWriter writer ) : void
writer XmlWriter
return void

Flush() public method

public Flush ( ) : void
return void

WriteBase64() public method

public WriteBase64 ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
return void

WriteBinHex() public method

public WriteBinHex ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
return void

WriteCData() public method

public WriteCData ( string text ) : void
text string
return void

WriteCharEntity() public method

public WriteCharEntity ( char ch ) : void
ch char
return void

WriteChars() public method

public WriteChars ( char buffer, int index, int count ) : void
buffer char
index int
count int
return void

WriteComment() public method

public WriteComment ( string text ) : void
text string
return void

WriteDocType() public method

public WriteDocType ( string name, string pubid, string sysid, string subset ) : void
name string
pubid string
sysid string
subset string
return void

WriteEndAttribute() public method

public WriteEndAttribute ( ) : void
return void

WriteEntityRef() public method

public WriteEntityRef ( string name ) : void
name string
return void

WriteProcessingInstruction() public method

public WriteProcessingInstruction ( string name, string text ) : void
name string
text string
return void

WriteRaw() public method

public WriteRaw ( char buffer, int index, int count ) : void
buffer char
index int
count int
return void

WriteRaw() public method

public WriteRaw ( string data ) : void
data string
return void

WriteStartAttribute() public method

public WriteStartAttribute ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
return void

WriteStartElement() public method

public WriteStartElement ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
return void

WriteString() public method

public WriteString ( string text ) : void
text string
return void

WriteSurrogateCharEntity() public method

public WriteSurrogateCharEntity ( char lowChar, char highChar ) : void
lowChar char
highChar char
return void

WriteValue() public method

All other WriteValue methods are implemented by XmlWriter to delegate to WriteValue(object) or WriteValue(string), so only these two methods need to be implemented.
public WriteValue ( object value ) : void
value object
return void

WriteValue() public method

public WriteValue ( string value ) : void
value string
return void

WriteWhitespace() public method

public WriteWhitespace ( string ws ) : void
ws string
return void

XmlEventCache() public method

public XmlEventCache ( string baseUri, bool hasRootNode ) : System
baseUri string
hasRootNode bool
return System