Class Dictionary.SimpleFlagParsingStrategy
java.lang.Object
org.apache.lucene.analysis.hunspell.Dictionary.FlagParsingStrategy
org.apache.lucene.analysis.hunspell.Dictionary.SimpleFlagParsingStrategy
- Enclosing class:
Dictionary
Simple implementation of
Dictionary.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 -
Method Summary
Modifier and TypeMethodDescriptionchar[]parseFlags(String rawFlags) Parses the given String into multiple flags(package private) StringprintFlag(char flag) Methods inherited from class org.apache.lucene.analysis.hunspell.Dictionary.FlagParsingStrategy
parseFlag, parseUtfFlags, printFlags
-
Constructor Details
-
SimpleFlagParsingStrategy
private SimpleFlagParsingStrategy()
-
-
Method Details
-
parseFlags
Description copied from class:Dictionary.FlagParsingStrategyParses the given String into multiple flags- Specified by:
parseFlagsin classDictionary.FlagParsingStrategy- Parameters:
rawFlags- String to parse into flags- Returns:
- Parsed flags
-
printFlag
- Specified by:
printFlagin classDictionary.FlagParsingStrategy- Returns:
- the original string representation of the given flag encoded by
Dictionary.FlagParsingStrategy.parseFlags(java.lang.String).
-