org.mmbase.applications.mmbob.util.transformers
Class PostingBody

java.lang.Object
  extended by org.mmbase.applications.mmbob.util.transformers.PostingBody

public class PostingBody
extends Object

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.)

Since:
MMBob
Version:
$Id: PostingBody.java 35620 2009-06-03 13:46:59Z michiel $
Author:
Gerard van Enk

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

replacements

protected static Map replacements
Constructor Detail

PostingBody

public PostingBody()
Method Detail

initReplacements

protected static void initReplacements()
Initializes the Map containing the replacements


initPatterns

protected void initPatterns()
Initializes the pattern array with all possible handlers.


initMatchers

protected void initMatchers()
Initializes the matcher array


transform

public String transform(String originalBody)
transforms the body in the xml-version.

Parameters:
originalBody - the body to be transformed

toString

public String toString()
Overrides:
toString in class Object


MMBase 2.0-SNAPSHOT - null