Package com.skava.ratingandreviews.model
Class ProfanityLoader
java.lang.Object
com.skava.ratingandreviews.model.ProfanityLoader
Class ProfanityLoader
This class is used to load profanity words based on locale.
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.ahocorasick.trie.Trie
loadProfanityWordsByUrl
(String collectionPropertyDomain, String locale, String profanitywordsConfig, String cloudFrontDomain)
-
Method Details
-
loadProfanityWordsByUrl
public static org.ahocorasick.trie.Trie loadProfanityWordsByUrl(String collectionPropertyDomain, String locale, String profanitywordsConfig, String cloudFrontDomain) throws IOException - Parameters:
collectionPropertyDomain
- collectionPropertyDomainlocale
- localeprofanitywordsConfig
- profanitywordsConfig- Returns:
- trie
- Throws:
IOException
- IOException
-