Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.webchat.filter
Class EmoticonFilter

java.lang.Object
  extended by com.jivesoftware.webchat.filter.EmoticonFilter

public class EmoticonFilter
extends java.lang.Object

A Filter that converts ASCII emoticons into image equivalents. This filter should only be run after any HTML stripping filters.

The filter must be configured with information about where the image files are located. A table containing all the supported emoticons with their ASCII representations and image file names is as follows:

EmotionASCIIImage
Happy:) or :-)happy.gif
Sad:( or :-(sad.gif
Grin:Dgrin.gif
Love:xlove.gif
Mischief;\mischief.gif
CoolB-)cool.gif
Devil]:)devil.gif
Silly:psilly.gif
AngryX-(angry.gif
Laugh:^Olaugh.gif
Wink;) or ;-)wink.gif
Blush:8}blush.gif
Cry:_|cry.gif
Confused?:|confused.gif
Shocked:Oshocked.gif
Plain:|plain.gif


Method Summary
static java.lang.String applyFilter(java.lang.String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

applyFilter

public static java.lang.String applyFilter(java.lang.String string)

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.