C# Класс System.Xml.XmlEventCache

Caches sequence of XmlEvents so that they can be replayed later.
Наследование: XmlRawWriter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
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

Описание методов

Close() публичный Метод

public Close ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

EndEvents() публичный Метод

public EndEvents ( ) : void
Результат void

EventsToString() публичный Метод

Concatenate all element text and atomic value events and return the resulting string.
public EventsToString ( ) : string
Результат string

EventsToWriter() публичный Метод

Replay all cached events to an XmlWriter.
public EventsToWriter ( XmlWriter writer ) : void
writer XmlWriter
Результат void

Flush() публичный Метод

public Flush ( ) : void
Результат void

WriteBase64() публичный Метод

public WriteBase64 ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
Результат void

WriteBinHex() публичный Метод

public WriteBinHex ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
Результат void

WriteCData() публичный Метод

public WriteCData ( string text ) : void
text string
Результат void

WriteCharEntity() публичный Метод

public WriteCharEntity ( char ch ) : void
ch char
Результат void

WriteChars() публичный Метод

public WriteChars ( char buffer, int index, int count ) : void
buffer char
index int
count int
Результат void

WriteComment() публичный Метод

public WriteComment ( string text ) : void
text string
Результат void

WriteDocType() публичный Метод

public WriteDocType ( string name, string pubid, string sysid, string subset ) : void
name string
pubid string
sysid string
subset string
Результат void

WriteEndAttribute() публичный Метод

public WriteEndAttribute ( ) : void
Результат void

WriteEntityRef() публичный Метод

public WriteEntityRef ( string name ) : void
name string
Результат void

WriteProcessingInstruction() публичный Метод

public WriteProcessingInstruction ( string name, string text ) : void
name string
text string
Результат void

WriteRaw() публичный Метод

public WriteRaw ( char buffer, int index, int count ) : void
buffer char
index int
count int
Результат void

WriteRaw() публичный Метод

public WriteRaw ( string data ) : void
data string
Результат void

WriteStartAttribute() публичный Метод

public WriteStartAttribute ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
Результат void

WriteStartElement() публичный Метод

public WriteStartElement ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
Результат void

WriteString() публичный Метод

public WriteString ( string text ) : void
text string
Результат void

WriteSurrogateCharEntity() публичный Метод

public WriteSurrogateCharEntity ( char lowChar, char highChar ) : void
lowChar char
highChar char
Результат void

WriteValue() публичный Метод

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
Результат void

WriteValue() публичный Метод

public WriteValue ( string value ) : void
value string
Результат void

WriteWhitespace() публичный Метод

public WriteWhitespace ( string ws ) : void
ws string
Результат void

XmlEventCache() публичный Метод

public XmlEventCache ( string baseUri, bool hasRootNode ) : System
baseUri string
hasRootNode bool
Результат System