Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ImageSource.cs
- Positioning.cs
- FrameworkElement.cs
- BitStream.cs
- CodeDomComponentSerializationService.cs
- XslTransform.cs
- TypeConstant.cs
- ResourcesChangeInfo.cs
- NgenServicingAttributes.cs
- HtmlInputCheckBox.cs
- QueryLifecycle.cs
- EmptyStringExpandableObjectConverter.cs
- Constants.cs
- MultilineStringConverter.cs
- UserMapPath.cs
- DependencyObjectPropertyDescriptor.cs
- SchemaAttDef.cs
- TypeUtil.cs
- RightsManagementInformation.cs
- ImageFormat.cs
- TextDpi.cs
- SplashScreenNativeMethods.cs
- GridView.cs
- SqlFormatter.cs
- TabControlAutomationPeer.cs
- DataKeyArray.cs
- TreeChangeInfo.cs
- StronglyTypedResourceBuilder.cs
- ToolStripSplitButton.cs
- Validator.cs
- SafeNativeMethods.cs
- ColorMap.cs
- DomainUpDown.cs
- ContextMarshalException.cs
- TcpTransportBindingElement.cs
- TypeLoadException.cs
- HttpPostServerProtocol.cs
- TargetInvocationException.cs
- Rect3DConverter.cs
- NullReferenceException.cs
- DateTimeValueSerializerContext.cs
- PageParser.cs
- WebHttpEndpoint.cs
- RoleService.cs
- SqlUdtInfo.cs
- AutomationIdentifierGuids.cs
- NativeStructs.cs
- CustomErrorsSectionWrapper.cs
- BlurBitmapEffect.cs
- SetterBase.cs
- MappingMetadataHelper.cs
- FileChangesMonitor.cs
- TaskHelper.cs
- _ServiceNameStore.cs
- ExpressionTable.cs
- MtomMessageEncodingBindingElement.cs
- DesignerDataConnection.cs
- Utils.cs
- FontStyleConverter.cs
- IsolationInterop.cs
- safemediahandle.cs
- HttpRuntimeSection.cs
- BinaryCommonClasses.cs
- StringValueConverter.cs
- DocumentOrderQuery.cs
- MsmqOutputChannel.cs
- xsdvalidator.cs
- SqlCacheDependencyDatabase.cs
- JulianCalendar.cs
- Button.cs
- EventLogEntryCollection.cs
- FixedSOMTableCell.cs
- Image.cs
- SQLBoolean.cs
- FeatureSupport.cs
- ArrayWithOffset.cs
- KeyMatchBuilder.cs
- _IPv6Address.cs
- TreeWalkHelper.cs
- DbConnectionPoolOptions.cs
- BaseEntityWrapper.cs
- TypeResolvingOptions.cs
- SafeFileMappingHandle.cs
- SHA384.cs
- WebPartConnectionsConnectVerb.cs
- ServiceX509SecurityTokenProvider.cs
- DoubleIndependentAnimationStorage.cs
- HttpHostedTransportConfiguration.cs
- IApplicationTrustManager.cs
- WebGetAttribute.cs
- LocatorPart.cs
- VideoDrawing.cs
- SqlXml.cs
- ApplyTemplatesAction.cs
- SectionUpdates.cs
- printdlgexmarshaler.cs
- StrongNameKeyPair.cs
- OdbcConnectionOpen.cs
- CustomTokenProvider.cs
- SingleConverter.cs