Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class MockReaderWrapper

    Wraps a System.IO.TextReader, and can throw random or fixed exceptions, and spoon feed read chars.

    Inheritance
    System.Object
    System.MarshalByRefObject
    System.IO.TextReader
    MockReaderWrapper
    Implements
    System.IDisposable
    Inherited Members
    System.IO.TextReader.Null
    System.IO.TextReader.Close()
    System.IO.TextReader.Dispose()
    System.IO.TextReader.Peek()
    System.IO.TextReader.ReadAsync(System.Char[], System.Int32, System.Int32)
    System.IO.TextReader.ReadBlock(System.Char[], System.Int32, System.Int32)
    System.IO.TextReader.ReadBlockAsync(System.Char[], System.Int32, System.Int32)
    System.IO.TextReader.ReadLine()
    System.IO.TextReader.ReadLineAsync()
    System.IO.TextReader.ReadToEnd()
    System.IO.TextReader.ReadToEndAsync()
    System.IO.TextReader.Synchronized(System.IO.TextReader)
    System.MarshalByRefObject.GetLifetimeService()
    System.MarshalByRefObject.InitializeLifetimeService()
    System.MarshalByRefObject.MemberwiseClone(System.Boolean)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Analysis
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public class MockReaderWrapper : TextReader, IDisposable

    Constructors

    | Improve this Doc View Source

    MockReaderWrapper(Random, TextReader)

    Declaration
    public MockReaderWrapper(Random random, TextReader input)
    Parameters
    Type Name Description
    System.Random random
    System.IO.TextReader input

    Methods

    | Improve this Doc View Source

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    System.IO.TextReader.Dispose(System.Boolean)
    | Improve this Doc View Source

    IsMyEvilException(Exception)

    Declaration
    public static bool IsMyEvilException(Exception t)
    Parameters
    Type Name Description
    System.Exception t
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Read()

    Declaration
    public override int Read()
    Returns
    Type Description
    System.Int32
    Overrides
    System.IO.TextReader.Read()
    | Improve this Doc View Source

    Read(Char[], Int32, Int32)

    Declaration
    public override int Read(char[] cbuf, int off, int len)
    Parameters
    Type Name Description
    System.Char[] cbuf
    System.Int32 off
    System.Int32 len
    Returns
    Type Description
    System.Int32
    Overrides
    System.IO.TextReader.Read(System.Char[], System.Int32, System.Int32)
    | Improve this Doc View Source

    ThrowExcAfterChar(Int32)

    Throw an exception after reading this many chars.

    Declaration
    public virtual void ThrowExcAfterChar(int charUpto)
    Parameters
    Type Name Description
    System.Int32 charUpto
    | Improve this Doc View Source

    ThrowExcNext()

    Declaration
    public virtual void ThrowExcNext()

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.