Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / TextOutput.cs / 1 / 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. //------------------------------------------------------------------------------ //// 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
- AudioLevelUpdatedEventArgs.cs
- EntityContainer.cs
- LoginName.cs
- CustomErrorsSection.cs
- DataPagerCommandEventArgs.cs
- ScriptingProfileServiceSection.cs
- HotCommands.cs
- TextEffect.cs
- JsonFormatGeneratorStatics.cs
- PathSegment.cs
- BitmapEffect.cs
- messageonlyhwndwrapper.cs
- GrammarBuilderBase.cs
- DocumentScope.cs
- ImageInfo.cs
- ExpressionBindingCollection.cs
- ServicesExceptionNotHandledEventArgs.cs
- PathFigureCollection.cs
- coordinator.cs
- XmlSchemas.cs
- DatePickerDateValidationErrorEventArgs.cs
- Reference.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- DataControlPagerLinkButton.cs
- XmlWrappingReader.cs
- Image.cs
- SectionXmlInfo.cs
- ToolStripItemClickedEventArgs.cs
- WpfPayload.cs
- EffectiveValueEntry.cs
- CompiledRegexRunner.cs
- GeometryModel3D.cs
- EndPoint.cs
- WebPartVerbCollection.cs
- StylusEditingBehavior.cs
- TextEditorThreadLocalStore.cs
- MetadataProperty.cs
- UpdateExpressionVisitor.cs
- XmlSchemaComplexType.cs
- SystemWebExtensionsSectionGroup.cs
- ActivityExecutor.cs
- Authorization.cs
- ManualResetEvent.cs
- PriorityQueue.cs
- ScriptServiceAttribute.cs
- WebPartCancelEventArgs.cs
- AnnotationMap.cs
- SqlInternalConnection.cs
- DataGridViewColumnCollection.cs
- Classification.cs
- URLMembershipCondition.cs
- BooleanStorage.cs
- DataException.cs
- Scheduler.cs
- Speller.cs
- CodeStatementCollection.cs
- SoapEnumAttribute.cs
- ClientSideProviderDescription.cs
- DocumentPageTextView.cs
- SHA512.cs
- ToolStripOverflow.cs
- WindowsIPAddress.cs
- GenerateHelper.cs
- DeviceContexts.cs
- GraphicsContainer.cs
- ClientTarget.cs
- SymbolResolver.cs
- ExpressionCopier.cs
- X509Utils.cs
- TimerElapsedEvenArgs.cs
- MimePart.cs
- System.Data.OracleClient_BID.cs
- ProcessModelSection.cs
- ProvidersHelper.cs
- DesignerForm.cs
- DrawingGroup.cs
- Asn1IntegerConverter.cs
- EffectiveValueEntry.cs
- ITreeGenerator.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- TemplateParser.cs
- WpfPayload.cs
- CellTreeNode.cs
- InlineObject.cs
- TextProviderWrapper.cs
- safelinkcollection.cs
- DecimalFormatter.cs
- ResourceSet.cs
- WindowPatternIdentifiers.cs
- ListDataHelper.cs
- Point.cs
- processwaithandle.cs
- CredentialCache.cs
- DetailsViewDeleteEventArgs.cs
- ColumnBinding.cs
- InfoCardUIAgent.cs
- XmlException.cs
- WebServiceErrorEvent.cs
- QueryOutputWriterV1.cs
- DataGridHeaderBorder.cs