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
- TraceUtils.cs
- Annotation.cs
- AggregateNode.cs
- diagnosticsswitches.cs
- SqlClientWrapperSmiStream.cs
- OdbcRowUpdatingEvent.cs
- HideDisabledControlAdapter.cs
- WpfWebRequestHelper.cs
- RelationshipWrapper.cs
- RegexCharClass.cs
- XmlBoundElement.cs
- WebPartTracker.cs
- MD5.cs
- GZipDecoder.cs
- FileBasedResourceGroveler.cs
- PasswordPropertyTextAttribute.cs
- AllMembershipCondition.cs
- MemberDescriptor.cs
- ContentType.cs
- FileVersion.cs
- IFlowDocumentViewer.cs
- ContextCorrelationInitializer.cs
- StringComparer.cs
- CellTreeNodeVisitors.cs
- DeviceContext.cs
- _SecureChannel.cs
- DetailsViewPageEventArgs.cs
- FtpWebResponse.cs
- IISUnsafeMethods.cs
- TemplateControl.cs
- ApplicationManager.cs
- DisableDpiAwarenessAttribute.cs
- TrackingMemoryStream.cs
- DataProtection.cs
- AnnouncementDispatcherAsyncResult.cs
- DbParameterCollectionHelper.cs
- XmlSchemaValidationException.cs
- ConsumerConnectionPoint.cs
- HWStack.cs
- MethodRental.cs
- MarkupWriter.cs
- AttachedPropertyDescriptor.cs
- TreeChangeInfo.cs
- UserPersonalizationStateInfo.cs
- DbConnectionPoolIdentity.cs
- ToggleButton.cs
- CodeAttributeArgument.cs
- AspCompat.cs
- ObjectToModelValueConverter.cs
- PositiveTimeSpanValidator.cs
- ListItemCollection.cs
- Win32NamedPipes.cs
- CreateUserWizard.cs
- LocalizabilityAttribute.cs
- PartialClassGenerationTaskInternal.cs
- BamlLocalizableResourceKey.cs
- Crc32.cs
- ScrollBarRenderer.cs
- CodeCatchClause.cs
- EventItfInfo.cs
- HttpFileCollection.cs
- CodeSubDirectoriesCollection.cs
- FontConverter.cs
- ObjectView.cs
- HighlightVisual.cs
- IntSecurity.cs
- XsltSettings.cs
- CodePageUtils.cs
- XDRSchema.cs
- AnonymousIdentificationSection.cs
- ImportDesigner.xaml.cs
- DriveInfo.cs
- ParseChildrenAsPropertiesAttribute.cs
- ThousandthOfEmRealPoints.cs
- RootProfilePropertySettingsCollection.cs
- WebBaseEventKeyComparer.cs
- LocalizabilityAttribute.cs
- TextWriter.cs
- ReachBasicContext.cs
- DefaultValueAttribute.cs
- QilCloneVisitor.cs
- CodeTypeDeclarationCollection.cs
- ConfigXmlComment.cs
- ToolboxComponentsCreatingEventArgs.cs
- SqlCommandBuilder.cs
- CollectionViewGroup.cs
- RightsManagementInformation.cs
- RenderDataDrawingContext.cs
- ReliabilityContractAttribute.cs
- PerformanceCounterCategory.cs
- DataMemberConverter.cs
- CompModSwitches.cs
- FileStream.cs
- RoutedPropertyChangedEventArgs.cs
- DbInsertCommandTree.cs
- UITypeEditors.cs
- Stopwatch.cs
- DataObjectMethodAttribute.cs
- EntryWrittenEventArgs.cs
- PriorityQueue.cs