Class MockCharFilter
The purpose of this charfilter is to send offsets out of bounds if the analyzer doesn't use Lucene.Net.Analysis.CharFilter.CorrectOffset(System.Int32) or does incorrect offset math.
Inheritance
System.Object
System.MarshalByRefObject
System.IO.TextReader
Lucene.Net.Analysis.CharFilter
MockCharFilter
Implements
System.IDisposable
Inherited Members
Lucene.Net.Analysis.CharFilter.m_input
Lucene.Net.Analysis.CharFilter.Dispose(System.Boolean)
Lucene.Net.Analysis.CharFilter.CorrectOffset(System.Int32)
Lucene.Net.Analysis.CharFilter.Skip(System.Int32)
Lucene.Net.Analysis.CharFilter.Reset()
Lucene.Net.Analysis.CharFilter.IsReady
Lucene.Net.Analysis.CharFilter.IsMarkSupported
Lucene.Net.Analysis.CharFilter.Mark(System.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
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class MockCharFilter : CharFilter, IDisposable
Constructors
| Improve this Doc View SourceMockCharFilter(TextReader)
Declaration
public MockCharFilter(TextReader in)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | in |
MockCharFilter(TextReader, Int32)
Declaration
public MockCharFilter(TextReader in, int remainder)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | in | |
System.Int32 | remainder |
Methods
| Improve this Doc View SourceAddOffCorrectMap(Int32, Int32)
Declaration
protected virtual void AddOffCorrectMap(int off, int cumulativeDiff)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | off | |
System.Int32 | cumulativeDiff |
Correct(Int32)
Declaration
protected override int Correct(int currentOff)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | currentOff |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Lucene.Net.Analysis.CharFilter.Correct(System.Int32)
|
Improve this Doc
View Source
Read()
Declaration
public override int Read()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Lucene.Net.Analysis.CharFilter.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
Lucene.Net.Analysis.CharFilter.Read(System.Char[], System.Int32, System.Int32)
Implements
System.IDisposable