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
- ComboBoxHelper.cs
- CompositeClientFormatter.cs
- XmlNodeReader.cs
- CachingHintValidation.cs
- SafeNativeMethods.cs
- OperationDescriptionCollection.cs
- EpmContentSerializerBase.cs
- AutomationProperties.cs
- CalendarDayButton.cs
- Solver.cs
- BaseAddressElementCollection.cs
- InvariantComparer.cs
- StylusPlugInCollection.cs
- ClassHandlersStore.cs
- DataControlHelper.cs
- SupportedAddressingMode.cs
- PrivilegeNotHeldException.cs
- Group.cs
- Attributes.cs
- AuthorizationRuleCollection.cs
- StackBuilderSink.cs
- ObfuscationAttribute.cs
- CodeArrayCreateExpression.cs
- DataGridViewUtilities.cs
- HandleTable.cs
- TextureBrush.cs
- DataMemberAttribute.cs
- OleAutBinder.cs
- PrintController.cs
- SR.cs
- SafeRegistryKey.cs
- OutKeywords.cs
- StdValidatorsAndConverters.cs
- X509Utils.cs
- UIElementParaClient.cs
- CodeAttributeDeclarationCollection.cs
- QilTernary.cs
- AVElementHelper.cs
- QilXmlReader.cs
- ChannelTraceRecord.cs
- CollectionExtensions.cs
- ReachDocumentReferenceCollectionSerializer.cs
- MetadataItem_Static.cs
- ReflectionPermission.cs
- UIElement3D.cs
- ListBindingHelper.cs
- InputLangChangeEvent.cs
- ScrollChangedEventArgs.cs
- ElementMarkupObject.cs
- ADMembershipUser.cs
- EventHandlerList.cs
- HtmlUtf8RawTextWriter.cs
- IItemContainerGenerator.cs
- AttachmentCollection.cs
- EntityClassGenerator.cs
- IListConverters.cs
- RichTextBoxConstants.cs
- HttpPostProtocolImporter.cs
- SetMemberBinder.cs
- DataSourceCacheDurationConverter.cs
- CacheVirtualItemsEvent.cs
- DocumentXmlWriter.cs
- SystemInfo.cs
- KeyBinding.cs
- KeyPressEvent.cs
- Proxy.cs
- SingleSelectRootGridEntry.cs
- RenderDataDrawingContext.cs
- SmuggledIUnknown.cs
- ProtocolsConfigurationHandler.cs
- OdbcConnectionPoolProviderInfo.cs
- DispatcherBuilder.cs
- QuaternionRotation3D.cs
- FieldCollectionEditor.cs
- DescendantBaseQuery.cs
- RootNamespaceAttribute.cs
- ControlDesigner.cs
- ProtectedConfiguration.cs
- Point3DKeyFrameCollection.cs
- ReferenceConverter.cs
- DictionaryGlobals.cs
- COM2IPerPropertyBrowsingHandler.cs
- GetWinFXPath.cs
- PopOutPanel.cs
- ToolStripOverflow.cs
- GZipDecoder.cs
- _IPv4Address.cs
- TemplateXamlParser.cs
- CachedPathData.cs
- AdapterUtil.cs
- Help.cs
- ToolStripDropDownMenu.cs
- HandleCollector.cs
- COM2PropertyBuilderUITypeEditor.cs
- XmlJsonWriter.cs
- SqlGatherProducedAliases.cs
- X509CertificateChain.cs
- FontNameConverter.cs
- entityreference_tresulttype.cs
- PropertyEntry.cs