public class ReplacementServiceSmileyImpl extends java.lang.Object implements SmiliesReplacementService
ReplacementService
to provide smiley as replacement
source.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SMILEY_SOURCE
Configuration label shown in the config form.
|
static java.lang.String |
smileyRegex
The regex used to match the smilies in the message.
|
SOURCE_NAME
Constructor and Description |
---|
ReplacementServiceSmileyImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPattern()
Returns the pattern of the source
|
java.lang.String |
getReplacement(java.lang.String sourceString)
Replaces the smiley strings with their corresponding smiley image.
|
java.util.Collection<Smiley> |
getSmiliesPack()
Returns the smileys pack to use in the user interface.
|
java.lang.String |
getSourceName()
Returns the source name
|
void |
reloadSmiliesPack()
Reloads all smilies.
|
public static final java.lang.String SMILEY_SOURCE
public static java.lang.String smileyRegex
public java.lang.String getReplacement(java.lang.String sourceString)
getReplacement
in interface ReplacementService
sourceString
- the original smiley string.public java.lang.String getSourceName()
getSourceName
in interface ReplacementService
public java.lang.String getPattern()
getPattern
in interface ReplacementService
public java.util.Collection<Smiley> getSmiliesPack()
getSmiliesPack
in interface SmiliesReplacementService
public void reloadSmiliesPack()
reloadSmiliesPack
in interface SmiliesReplacementService
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.