C# Class ConvertLib.FilteredStreamReader

Stream reader that will change control charaters to spaces. Will prevent conversion of projects with control characters in the text from failing. Could quote the characters, but they are not likely to be really wanted in the text.
Inheritance: System.IO.StreamReader
显示文件 Open project: sillsdev/FieldWorks

Public Methods

Method Description
FilteredStreamReader ( string path ) : System
Read ( ) : int

Overrides read to filter out control characters.

Read ( char buffer, int index, int count ) : int

Overrides read to filter out control characters.

ReadLine ( ) : string

Overrides read to filter out control characters.

Private Methods

Method Description
ConvertControlCharToSpace ( char c ) : char

Method Details

FilteredStreamReader() public method

public FilteredStreamReader ( string path ) : System
path string
return System

Read() public method

Overrides read to filter out control characters.
public Read ( ) : int
return int

Read() public method

Overrides read to filter out control characters.
public Read ( char buffer, int index, int count ) : int
buffer char
index int
count int
return int

ReadLine() public method

Overrides read to filter out control characters.
public ReadLine ( ) : string
return string