• API

    Show / Hide Table of Contents

    Interface IAutoDetector

    Classes which accept an System.IO.Stream and provide a System.IO.TextReader which figures out the encoding of the System.IO.Stream and reads characters from it should conform to this interface.

    Namespace: TagSoup
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public interface IAutoDetector

    Methods

    | Improve this Doc View Source

    AutoDetectingReader(Stream)

    Given a System.IO.Stream, return a suitable System.IO.TextReader that understands the presumed character encoding of that System.IO.Stream. If bytes are consumed from the System.IO.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
    System.IO.Stream stream

    The System.IO.Stream

    Returns
    Type Description
    System.IO.TextReader

    A System.IO.TextReader that reads from the System.IO.Stream

    See Also

    System.IO.Stream
    System.IO.TextReader
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)