Class PersianCharFilter

java.lang.Object
java.io.Reader
org.apache.lucene.analysis.CharFilter
org.apache.lucene.analysis.fa.PersianCharFilter
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public class PersianCharFilter extends CharFilter
CharFilter that replaces instances of Zero-width non-joiner with an ordinary space.
  • Constructor Details

    • PersianCharFilter

      public PersianCharFilter(Reader in)
  • Method Details

    • read

      public int read(char[] cbuf, int off, int len) throws IOException
      Specified by:
      read in class Reader
      Throws:
      IOException
    • read

      public int read() throws IOException
      Overrides:
      read in class Reader
      Throws:
      IOException
    • correct

      protected int correct(int currentOff)
      Description copied from class: CharFilter
      Subclasses override to correct the current offset.
      Specified by:
      correct in class CharFilter
      Parameters:
      currentOff - current offset
      Returns:
      corrected offset