Show / Hide Table of Contents

    Class MockCharFilter

    The purpose of this charfilter is to send offsets out of bounds if the analyzer doesn't use or does incorrect offset math.

    Inheritance
    System.Object
    MockCharFilter
    Namespace: Lucene.Net.Analysis
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public class MockCharFilter : CharFilter

    Constructors

    | Improve this Doc View Source

    MockCharFilter(TextReader)

    Declaration
    public MockCharFilter(TextReader in)
    Parameters
    Type Name Description
    TextReader in
    | Improve this Doc View Source

    MockCharFilter(TextReader, Int32)

    Declaration
    public MockCharFilter(TextReader in, int remainder)
    Parameters
    Type Name Description
    TextReader in
    System.Int32 remainder

    Methods

    | Improve this Doc View Source

    AddOffCorrectMap(Int32, Int32)

    Declaration
    protected virtual void AddOffCorrectMap(int off, int cumulativeDiff)
    Parameters
    Type Name Description
    System.Int32 off
    System.Int32 cumulativeDiff
    | Improve this Doc View Source

    Correct(Int32)

    Declaration
    protected override int Correct(int currentOff)
    Parameters
    Type Name Description
    System.Int32 currentOff
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Read()

    Declaration
    public override int Read()
    Returns
    Type Description
    System.Int32
    | 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
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)