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

java.lang.Object
  extended byorg.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,v 1.2 2005/02/22 15:29:12 gerard Exp $
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()


MMBase build 1.8.1.20060716