|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.applications.mmbob.util.transformers.PostingBody
public class PostingBody
xmlize the posting body.
At this moment it will only escape the characters:
& --> &
" --> "
< --> <
> --> >
\r --> ""
\n -->
In the future probably more escaping will be done (urls, images, etc.)
| Field Summary | |
|---|---|
protected static Map |
replacements
|
| Constructor Summary | |
|---|---|
PostingBody()
|
|
| Method Summary | |
|---|---|
protected void |
initMatchers()
Initializes the matcher array |
protected void |
initPatterns()
Initializes the pattern array with all possible handlers. |
protected static void |
initReplacements()
Initializes the Map containing the replacements |
String |
toString()
|
String |
transform(String originalBody)
transforms the body in the xml-version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static Map replacements
| Constructor Detail |
|---|
public PostingBody()
| Method Detail |
|---|
protected static void initReplacements()
protected void initPatterns()
protected void initMatchers()
public String transform(String originalBody)
originalBody - the body to be transformedpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||