Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class BaseCharFilter

    Base utility class for implementing a Lucene.Net.Analysis.CharFilter. You subclass this, and then record mappings by calling AddOffCorrectMap(Int32, Int32), and then invoke the correct method to correct an offset.

    Inheritance
    System.Object
    System.MarshalByRefObject
    System.IO.TextReader
    Lucene.Net.Analysis.CharFilter
    BaseCharFilter
    HTMLStripCharFilter
    MappingCharFilter
    PatternReplaceCharFilter
    BufferedCharFilter
    Implements
    System.IDisposable
    Inherited Members
    Lucene.Net.Analysis.CharFilter.m_input
    CharFilter.Dispose(Boolean)
    CharFilter.CorrectOffset(Int32)
    CharFilter.Read(Char[], Int32, Int32)
    Lucene.Net.Analysis.CharFilter.Read()
    CharFilter.Skip(Int32)
    Lucene.Net.Analysis.CharFilter.Reset()
    Lucene.Net.Analysis.CharFilter.IsReady
    Lucene.Net.Analysis.CharFilter.IsMarkSupported
    CharFilter.Mark(Int32)
    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.CharFilters
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public abstract class BaseCharFilter : CharFilter, IDisposable

    Constructors

    | Improve this Doc View Source

    BaseCharFilter(TextReader)

    Declaration
    public BaseCharFilter(TextReader in)
    Parameters
    Type Name Description
    System.IO.TextReader in

    Properties

    | Improve this Doc View Source

    LastCumulativeDiff

    Declaration
    protected virtual int LastCumulativeDiff { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    AddOffCorrectMap(Int32, Int32)

    Adds an offset correction mapping at the given output stream offset.

    Assumption: the offset given with each successive call to this method will not be smaller than the offset given at the previous invocation.

    Declaration
    protected virtual void AddOffCorrectMap(int off, int cumulativeDiff)
    Parameters
    Type Name Description
    System.Int32 off

    The output stream offset at which to apply the correction

    System.Int32 cumulativeDiff

    The input offset is given by adding this to the output offset

    | Improve this Doc View Source

    Correct(Int32)

    Retrieve the corrected offset.

    Declaration
    protected override int Correct(int currentOff)
    Parameters
    Type Name Description
    System.Int32 currentOff
    Returns
    Type Description
    System.Int32
    Overrides
    CharFilter.Correct(Int32)

    Implements

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