|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.renderer.macro.Preserved
public abstract class Preserved
A specialized macro that allows to preserve certain special characters by creating character entities. The subclassing macro may decide whether to call replace() before or after executing the actual macro substitution. . Jugel
Constructor Summary | |
---|---|
Preserved()
|
Method Summary | |
---|---|
protected void |
addSpecial(char c)
Encode special character c by replacing with it's hex character entity code. |
protected void |
addSpecial(java.lang.String c,
java.lang.String replacement)
Add a replacement for the special character c which may be a string |
protected java.lang.String |
replace(java.lang.String source)
Actually replace specials in source. |
static char |
toChar(java.lang.String number)
|
static java.lang.String |
toEntity(int c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Preserved()
Method Detail |
---|
protected void addSpecial(char c)
c
- add character as a special characterprotected void addSpecial(java.lang.String c, java.lang.String replacement)
c
- the character to replacereplacement
- the new stringprotected java.lang.String replace(java.lang.String source)
source
- String to encode
public static java.lang.String toEntity(int c)
public static char toChar(java.lang.String number)
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |