Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- ColorTranslator.cs
- ImageField.cs
- MethodToken.cs
- Style.cs
- AuthorizationRule.cs
- TypeExtension.cs
- FieldDescriptor.cs
- ClientBuildManager.cs
- MarkupWriter.cs
- ArithmeticLiteral.cs
- SamlSecurityToken.cs
- ApplicationCommands.cs
- GestureRecognizer.cs
- PropertyNames.cs
- StorageAssociationSetMapping.cs
- LostFocusEventManager.cs
- IISMapPath.cs
- LogLogRecord.cs
- SerializerWriterEventHandlers.cs
- FilterUserControlBase.cs
- XmlUtil.cs
- Set.cs
- AccessControlList.cs
- IHttpResponseInternal.cs
- VideoDrawing.cs
- EUCJPEncoding.cs
- SortDescription.cs
- StorageSetMapping.cs
- HorizontalAlignConverter.cs
- ProfessionalColorTable.cs
- DataRecordInternal.cs
- EventLog.cs
- ScriptServiceAttribute.cs
- UseAttributeSetsAction.cs
- TextOnlyOutput.cs
- DeflateStream.cs
- SimpleWebHandlerParser.cs
- SafeFileMapViewHandle.cs
- TextParaLineResult.cs
- AssociationSetMetadata.cs
- TripleDES.cs
- arabicshape.cs
- TextServicesContext.cs
- DataGridTableStyleMappingNameEditor.cs
- basenumberconverter.cs
- OuterGlowBitmapEffect.cs
- PreviewKeyDownEventArgs.cs
- AnonymousIdentificationSection.cs
- ResourceExpressionEditorSheet.cs
- ComponentChangedEvent.cs
- MergeFailedEvent.cs
- KeyFrames.cs
- FixedElement.cs
- AbstractSvcMapFileLoader.cs
- RadioButtonAutomationPeer.cs
- CheckBox.cs
- PrintPreviewGraphics.cs
- MessagePropertyFilter.cs
- ScriptComponentDescriptor.cs
- StyleTypedPropertyAttribute.cs
- ListViewItem.cs
- Helper.cs
- SafeNativeMethods.cs
- ZoomPercentageConverter.cs
- WebException.cs
- StringUtil.cs
- Confirm.cs
- EtwTrackingBehaviorElement.cs
- KeyNotFoundException.cs
- TraceUtils.cs
- BitmapEffectvisualstate.cs
- BatchParser.cs
- XamlSerializerUtil.cs
- WebPartDesigner.cs
- HGlobalSafeHandle.cs
- ArraySortHelper.cs
- XhtmlTextWriter.cs
- EdmPropertyAttribute.cs
- CipherData.cs
- SortFieldComparer.cs
- WebServiceAttribute.cs
- WriteableBitmap.cs
- MethodSet.cs
- GatewayIPAddressInformationCollection.cs
- ToolZoneDesigner.cs
- QilVisitor.cs
- XmlSchemaAttributeGroup.cs
- DataContractJsonSerializerOperationFormatter.cs
- ConfigurationElementCollection.cs
- ServiceDescription.cs
- Triangle.cs
- CounterSample.cs
- EmptyStringExpandableObjectConverter.cs
- SynchronizedInputProviderWrapper.cs
- BitmapEffectDrawing.cs
- ScriptingWebServicesSectionGroup.cs
- mediaclock.cs
- ContentControl.cs
- XmlHierarchyData.cs
- FigureParagraph.cs