Interface StemmerDictionaryParser.EntryHandler

Enclosing class:
StemmerDictionaryParser
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface StemmerDictionaryParser.EntryHandler
Callback receiving one parsed dictionary line.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEntry(String stem, String[] variants, int lineNumber)
    Accepts one parsed dictionary entry.
  • Method Details

    • onEntry

      void onEntry(String stem, String[] variants, int lineNumber) throws IOException
      Accepts one parsed dictionary entry.
      Parameters:
      stem - canonical stem, never null
      variants - variants in encounter order, never null
      lineNumber - original physical line number in the parsed source
      Throws:
      IOException - if processing fails