Class WechatEmojiConverter
- java.lang.Object
-
- com.flowable.engage.external.system.wechat.WechatEmojiConverter
-
public class WechatEmojiConverter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerloggerprotected Map<String,String>otherToWechatMapprotected List<String>unsupportedUnicodeBlocksprotected Map<String,String>wechatToOtherMap
-
Constructor Summary
Constructors Constructor Description WechatEmojiConverter(String emojiConversionSetting, List<String> unsupportedUnicodeBlocks, Collection<Resource> conversionResources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringconvertFromUTF8ToWeChat(String input)StringconvertFromWeChatToUTF8(String input)booleanhasUnsupportedEmojis(String input)returns true if the input contains an unsupported emoji (utf8 characters within the ranges definde din unsupportedUnicodeBlocks
-
-
-
Constructor Detail
-
WechatEmojiConverter
public WechatEmojiConverter(String emojiConversionSetting, List<String> unsupportedUnicodeBlocks, Collection<Resource> conversionResources)
-
-
Method Detail
-
hasUnsupportedEmojis
public boolean hasUnsupportedEmojis(String input)
returns true if the input contains an unsupported emoji (utf8 characters within the ranges definde din unsupportedUnicodeBlocks- Parameters:
input- the input string to be tested against- Returns:
- true if the input contains an unsupported emoji
-
-