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.Logger
logger
protected Map<String,String>
otherToWechatMap
protected List<String>
unsupportedUnicodeBlocks
protected 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 String
convertFromUTF8ToWeChat(String input)
String
convertFromWeChatToUTF8(String input)
boolean
hasUnsupportedEmojis(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
-
-