Share via


ConverterStream members

The ConverterStream class is a stream-based converter that can be configured for reading or writing.

The ConverterStream type exposes the following members.

Constructors

  Name Description
Public method ConverterStream(TextReader, TextConverter) The ConverterStream constructor creates a new read-only ConverterStream object for converting sourceReader by using converter.
Public method ConverterStream(TextWriter, TextConverter) The ConverterStream constructor creates a new ConverterStream object for writing converted content into destinationWriter by using conversion.
Public method ConverterStream(Stream, TextConverter, ConverterStreamAccess) The ConverterStream constructor creates a new ConverterStream object that uses converter to either read from or write into stream, based on the value supplied by access.

Top

Properties

  Name Description
Public property CanRead The CanRead property indicates whether the current stream supports reading. (Overrides Stream.CanRead.)
Public property CanSeek The CanSeek property returns false to indicate that the ConverterStream object does not support seeks. (Overrides Stream.CanSeek.)
Public property CanWrite The CanWrite property indicates whether this ConverterStream can be written to. (Overrides Stream.CanWrite.)
Public property Length Throws an exception when called. (Overrides Stream.Length.)
Public property Position Throws an exception when called. (Overrides Stream.Position.)

Top

Methods

  Name Description
Protected method Dispose Releases the unmanaged resources used by the ConverterStream and optionally releases the managed resources. (Overrides Stream.Dispose(Boolean).)
Public method Flush The Flush method clears all buffers for this ConverterStream and causes any buffered data to be written to the destination TextWriter that it owns. (Overrides Stream.Flush().)
Public method Read The Read method reads and converts count bytes from the input stream and stores them in buffer, starting at offset. (Overrides Stream.Read([], Int32, Int32).)
Public method Seek Throws an exception when called. (Overrides Stream.Seek(Int64, SeekOrigin).)
Public method SetLength The SetLength method throws a NotSupportedException. (Overrides Stream.SetLength(Int64).)
Public method Write The Write method converts and writes count bytes from buffer, starting at offset, into the destination TextWriter that it owns. (Overrides Stream.Write([], Int32, Int32).)

Top

See also

Reference

ConverterStream class

Microsoft.Exchange.Data.TextConverters namespace