1 //------------------------------------------------------------------------------
2 // <copyright file="TextOutput.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">[....]</owner>
6 //------------------------------------------------------------------------------
8 namespace System.Xml.Xsl.XsltOld {
9 using Res = System.Xml.Utils.Res;
13 using System.Xml.XPath;
16 internal class TextOutput : SequentialOutput {
17 private TextWriter writer;
19 internal TextOutput(Processor processor, Stream stream)
23 throw new ArgumentNullException("stream");
26 this.encoding = processor.Output.Encoding;
27 this.writer = new StreamWriter(stream, this.encoding);
30 internal TextOutput(Processor processor, TextWriter writer)
34 throw new ArgumentNullException("writer");
37 this.encoding = writer.Encoding;
41 internal override void Write(char outputChar) {
42 this.writer.Write(outputChar);
45 internal override void Write(string outputText) {
46 this.writer.Write(outputText);
49 internal override void Close() {