Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / TextOutput.cs / 1305376 / TextOutput.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Xsl.XsltOld {
using Res = System.Xml.Utils.Res;
using System;
using System.IO;
using System.Xml;
using System.Xml.XPath;
using System.Text;
internal class TextOutput : SequentialOutput {
private TextWriter writer;
internal TextOutput(Processor processor, Stream stream)
: base(processor)
{
if (stream == null) {
throw new ArgumentNullException("stream");
}
this.encoding = processor.Output.Encoding;
this.writer = new StreamWriter(stream, this.encoding);
}
internal TextOutput(Processor processor, TextWriter writer)
: base(processor)
{
if (writer == null) {
throw new ArgumentNullException("writer");
}
this.encoding = writer.Encoding;
this.writer = writer;
}
internal override void Write(char outputChar) {
this.writer.Write(outputChar);
}
internal override void Write(string outputText) {
this.writer.Write(outputText);
}
internal override void Close() {
this.writer.Flush();
this.writer = null;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MissingMemberException.cs
- SqlFactory.cs
- ResourcePermissionBase.cs
- _FtpControlStream.cs
- TrustLevel.cs
- Stackframe.cs
- CommandDevice.cs
- ObjectReaderCompiler.cs
- EventLogException.cs
- FusionWrap.cs
- typedescriptorpermission.cs
- adornercollection.cs
- DelegateTypeInfo.cs
- IsolatedStorageFileStream.cs
- EntityDataSourceReferenceGroup.cs
- HtmlTitle.cs
- TypeLoadException.cs
- MouseDevice.cs
- HMACSHA1.cs
- ClientRuntime.cs
- ResolvedKeyFrameEntry.cs
- MissingSatelliteAssemblyException.cs
- ClusterRegistryConfigurationProvider.cs
- SqlMethodAttribute.cs
- SerializationObjectManager.cs
- DynamicControl.cs
- ReplacementText.cs
- NavigationService.cs
- WindowsStartMenu.cs
- DefaultShape.cs
- InternalException.cs
- UpDownBase.cs
- FormViewModeEventArgs.cs
- DecoderFallbackWithFailureFlag.cs
- NullableDoubleSumAggregationOperator.cs
- TrackPoint.cs
- COMException.cs
- ListBox.cs
- Matrix3DConverter.cs
- AxisAngleRotation3D.cs
- ComplexObject.cs
- RepeaterItemCollection.cs
- RequestCacheManager.cs
- GraphicsContext.cs
- XmlAttributeHolder.cs
- XmlObjectSerializerWriteContext.cs
- UpdateProgress.cs
- DataPager.cs
- Section.cs
- KnownIds.cs
- ConstraintCollection.cs
- sqlnorm.cs
- XmlStreamNodeWriter.cs
- BaseTemplateCodeDomTreeGenerator.cs
- DesignerActionMethodItem.cs
- ReadOnlyHierarchicalDataSource.cs
- XslVisitor.cs
- LayoutUtils.cs
- SqlCommand.cs
- SuppressMergeCheckAttribute.cs
- DbModificationCommandTree.cs
- ServerIdentity.cs
- ToolstripProfessionalRenderer.cs
- XamlStream.cs
- PropertyStore.cs
- BuildProviderCollection.cs
- ListChunk.cs
- HttpGetServerProtocol.cs
- IteratorDescriptor.cs
- XomlDesignerLoader.cs
- RegexCaptureCollection.cs
- UserMapPath.cs
- Models.cs
- SpnEndpointIdentity.cs
- AssertFilter.cs
- ObjectDataSource.cs
- DataGridView.cs
- BigIntegerStorage.cs
- SmiRecordBuffer.cs
- Matrix.cs
- DataKeyArray.cs
- List.cs
- SamlSubject.cs
- FacetDescriptionElement.cs
- StackSpiller.cs
- CornerRadius.cs
- FillErrorEventArgs.cs
- Pen.cs
- ClientFormsIdentity.cs
- AudioFileOut.cs
- BuildProviderCollection.cs
- WebResponse.cs
- QueryCoreOp.cs
- XNameTypeConverter.cs
- LayoutTableCell.cs
- BinaryConverter.cs
- MessagePropertyDescription.cs
- OdbcHandle.cs
- _NetworkingPerfCounters.cs
- MessageSecurityVersionConverter.cs