Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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

    See Also
    Stream
    TextReader

    See Also

    Stream
    TextReader
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.