Class Dictionary.SimpleFlagParsingStrategy
- java.lang.Object
-
- org.apache.lucene.analysis.hunspell.Dictionary.FlagParsingStrategy
-
- org.apache.lucene.analysis.hunspell.Dictionary.SimpleFlagParsingStrategy
-
- Enclosing class:
- Dictionary
private static class Dictionary.SimpleFlagParsingStrategy extends Dictionary.FlagParsingStrategy
Simple implementation ofDictionary.FlagParsingStrategy
that treats the chars in each String as a individual flags. Can be used with both the ASCII and UTF-8 flag types.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.analysis.hunspell.Dictionary.FlagParsingStrategy
checkFlags
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SimpleFlagParsingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]
parseFlags(java.lang.String rawFlags)
Parses the given String into multiple flags(package private) java.lang.String
printFlag(char flag)
-
Methods inherited from class org.apache.lucene.analysis.hunspell.Dictionary.FlagParsingStrategy
parseFlag, parseUtfFlags, printFlags
-
-
-
-
Method Detail
-
parseFlags
public char[] parseFlags(java.lang.String rawFlags)
Description copied from class:Dictionary.FlagParsingStrategy
Parses the given String into multiple flags- Specified by:
parseFlags
in classDictionary.FlagParsingStrategy
- Parameters:
rawFlags
- String to parse into flags- Returns:
- Parsed flags
-
printFlag
java.lang.String printFlag(char flag)
- Specified by:
printFlag
in classDictionary.FlagParsingStrategy
- Returns:
- the original string representation of the given flag encoded by
Dictionary.FlagParsingStrategy.parseFlags(java.lang.String)
.
-
-