Interface IAutoDetector
Classes which accept an Stream and provide a TextReader which figures out the encoding of the Stream and reads characters from it should conform to this interface.
Namespace: TagSoup
Assembly: Lucene.Net.Benchmark.dll
Syntax
public interface IAutoDetector
Methods
AutoDetectingReader(Stream)
Given a Stream, return a suitable TextReader that understands the presumed character encoding of that Stream. If bytes are consumed from the Stream in the process, they must be pushed back onto the InputStream so that they can be reinterpreted as characters.
Declaration
TextReader AutoDetectingReader(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The Stream |
Returns
| Type | Description |
|---|---|
| TextReader | A TextReader that reads from the Stream |