C# Class System.Xml.XmlAutoDetectWriter

This writer implements XmlOutputMethod.AutoDetect. If the first element is "html", then output will be directed to an Html writer. Otherwise, output will be directed to an Xml writer.
Inheritance: XmlRawWriter, IRemovableWriter
Afficher le fichier Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Private Properties

Свойство Type Description
CreateWrappedWriter void
EnsureWrappedWriter void
IsHtmlTag bool
StartElementContent void
TextBlockCreatesWriter bool
WriteEndElement void
WriteFullEndElement void
WriteNamespaceDeclaration void
WriteXmlDeclaration void
WriteXmlDeclaration void
XmlAutoDetectWriter System

Méthodes publiques

Méthode Description
Close ( ) : void
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 ( System.DateTime value ) : void
WriteValue ( bool value ) : void
WriteValue ( decimal value ) : void
WriteValue ( double value ) : void
WriteValue ( float value ) : void
WriteValue ( int value ) : void
WriteValue ( long value ) : void
WriteValue ( object value ) : void
WriteValue ( string value ) : void
WriteWhitespace ( string ws ) : void
XmlAutoDetectWriter ( Stream strm, Encoding encoding, XmlWriterSettings writerSettings ) : System
XmlAutoDetectWriter ( TextWriter textWriter, XmlWriterSettings writerSettings ) : System

Private Methods

Méthode Description
CreateWrappedWriter ( XmlOutputMethod outMethod ) : void

Create either the Html or Xml writer and send any cached events to it.

EnsureWrappedWriter ( XmlOutputMethod outMethod ) : void

If a wrapped writer has not yet been created, create one.

IsHtmlTag ( string tagName ) : bool

Return true if "tagName" == "html" (case-insensitive).

StartElementContent ( ) : void
TextBlockCreatesWriter ( string textBlock ) : bool

If the specified text consist only of whitespace, then cache the whitespace, as it is not enough to force the creation of a wrapped writer. Otherwise, create a wrapped writer if one has not yet been created and return true.

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
XmlAutoDetectWriter ( XmlWriterSettings writerSettings, Encoding encoding ) : System

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

WriteBase64() public méthode

public WriteBase64 ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
Résultat void

WriteBinHex() public méthode

public WriteBinHex ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
Résultat void

WriteCData() public méthode

public WriteCData ( string text ) : void
text string
Résultat void

WriteCharEntity() public méthode

public WriteCharEntity ( char ch ) : void
ch char
Résultat void

WriteChars() public méthode

public WriteChars ( char buffer, int index, int count ) : void
buffer char
index int
count int
Résultat void

WriteComment() public méthode

public WriteComment ( string text ) : void
text string
Résultat void

WriteDocType() public méthode

public WriteDocType ( string name, string pubid, string sysid, string subset ) : void
name string
pubid string
sysid string
subset string
Résultat void

WriteEndAttribute() public méthode

public WriteEndAttribute ( ) : void
Résultat void

WriteEntityRef() public méthode

public WriteEntityRef ( string name ) : void
name string
Résultat void

WriteProcessingInstruction() public méthode

public WriteProcessingInstruction ( string name, string text ) : void
name string
text string
Résultat void

WriteRaw() public méthode

public WriteRaw ( char buffer, int index, int count ) : void
buffer char
index int
count int
Résultat void

WriteRaw() public méthode

public WriteRaw ( string data ) : void
data string
Résultat void

WriteStartAttribute() public méthode

public WriteStartAttribute ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
Résultat void

WriteStartElement() public méthode

public WriteStartElement ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
Résultat void

WriteString() public méthode

public WriteString ( string text ) : void
text string
Résultat void

WriteSurrogateCharEntity() public méthode

public WriteSurrogateCharEntity ( char lowChar, char highChar ) : void
lowChar char
highChar char
Résultat void

WriteValue() public méthode

public WriteValue ( System.DateTime value ) : void
value System.DateTime
Résultat void

WriteValue() public méthode

public WriteValue ( bool value ) : void
value bool
Résultat void

WriteValue() public méthode

public WriteValue ( decimal value ) : void
value decimal
Résultat void

WriteValue() public méthode

public WriteValue ( double value ) : void
value double
Résultat void

WriteValue() public méthode

public WriteValue ( float value ) : void
value float
Résultat void

WriteValue() public méthode

public WriteValue ( int value ) : void
value int
Résultat void

WriteValue() public méthode

public WriteValue ( long value ) : void
value long
Résultat void

WriteValue() public méthode

public WriteValue ( object value ) : void
value object
Résultat void

WriteValue() public méthode

public WriteValue ( string value ) : void
value string
Résultat void

WriteWhitespace() public méthode

public WriteWhitespace ( string ws ) : void
ws string
Résultat void

XmlAutoDetectWriter() public méthode

public XmlAutoDetectWriter ( Stream strm, Encoding encoding, XmlWriterSettings writerSettings ) : System
strm Stream
encoding System.Text.Encoding
writerSettings XmlWriterSettings
Résultat System

XmlAutoDetectWriter() public méthode

public XmlAutoDetectWriter ( TextWriter textWriter, XmlWriterSettings writerSettings ) : System
textWriter System.IO.TextWriter
writerSettings XmlWriterSettings
Résultat System