public XmlTextWriter(TextWriter w) : this() { this.textWriter = w; this.encoding = w.Encoding; this.xmlEncoder = new XmlTextEncoder(w); this.xmlEncoder.QuoteChar = this.quoteChar; }
internal XmlTextWriterBase64Encoder(XmlTextEncoder xmlTextEncoder) { _xmlTextEncoder = xmlTextEncoder; }
// Creates an instance of the XmlTextWriter class using the specified TextWriter. public XmlTextWriter(TextWriter w) : this() { _textWriter = w; _encoding = w.Encoding; _xmlEncoder = new XmlTextEncoder(w); _xmlEncoder.QuoteChar = _quoteChar; }
// Creates an instance of the XmlTextWriter class using the specified stream. public XmlTextWriter(Stream w, Encoding encoding) : this() { _encoding = encoding; if (encoding != null) _textWriter = new StreamWriter(w, encoding); else _textWriter = new StreamWriter(w); _xmlEncoder = new XmlTextEncoder(_textWriter); _xmlEncoder.QuoteChar = _quoteChar; }
internal XmlTextWriterBase64Encoder( XmlTextEncoder xmlTextEncoder ) { this.xmlTextEncoder = xmlTextEncoder; }
private void Init() { buffer = new StringBuilder(); encoder = new XmlTextEncoder(new StringWriter(buffer, CultureInfo.InvariantCulture)); }
// Creates an instance of the XmlTextWriter class using the specified stream. public XmlTextWriter(Stream w, Encoding encoding) : this() { this.encoding = encoding; if (encoding != null) textWriter = new StreamWriter(w, encoding); else textWriter = new StreamWriter(w); xmlEncoder = new XmlTextEncoder(textWriter); xmlEncoder.QuoteChar = this.quoteChar; }
/// <include file='doc\XmlTextWriter.uex' path='docs/doc[@for="XmlTextWriter.XmlTextWriter2"]/*' /> /// <devdoc> /// <para> /// Creates an instance of the XmlTextWriter class using the specified /// TextWriter. /// </para> /// </devdoc> public XmlTextWriter(TextWriter w) : this() { textWriter = w; encoding = w.Encoding; xmlEncoder = new XmlTextEncoder(w, this.encoding); xmlEncoder.QuoteChar = this.quoteChar; }
private void Init() { buffer = new StringBuilder(); encoder = new XmlTextEncoder(new StringWriter(buffer), Encoding.Unicode); }