public XmlTextWriter(TextWriter w) : this()
 {
     this.textWriter = w;
     this.encoding = w.Encoding;
     this.xmlEncoder = new XmlTextEncoder(w);
     this.xmlEncoder.QuoteChar = this.quoteChar;
 }
Beispiel #2
0
 internal XmlTextWriterBase64Encoder(XmlTextEncoder xmlTextEncoder)
 {
     _xmlTextEncoder = xmlTextEncoder;
 }
Beispiel #3
0
        // 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;
        }
Beispiel #4
0
 // 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));
 }
Beispiel #7
0
 // 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;
 }
Beispiel #8
0
        /// <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;
        }
Beispiel #9
0
 private void Init() {
     buffer  = new StringBuilder();
     encoder = new XmlTextEncoder(new StringWriter(buffer), Encoding.Unicode);
 }