org.kefirsf.bb
Class EscapeProcessor

java.lang.Object
  extended by org.kefirsf.bb.TextProcessorAdapter
      extended by org.kefirsf.bb.EscapeProcessor
All Implemented Interfaces:
TextProcessor

public class EscapeProcessor
extends TextProcessorAdapter

Class for escape processing. For example, EscapeXmlProcessorFactory use this class for create EscapeXmlProcessor.

Author:
Kefir

Constructor Summary
EscapeProcessor(String[][] escape)
          Construct the escape processor with special escape symbols.
 
Method Summary
 CharSequence process(CharSequence source)
          Process the text
 
Methods inherited from class org.kefirsf.bb.TextProcessorAdapter
process, process, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EscapeProcessor

public EscapeProcessor(String[][] escape)
Construct the escape processor with special escape symbols.

Parameters:
escape - escape symbols with replacement. This is a array of array wich consist of two strings the pattern and the replacement
Method Detail

process

public CharSequence process(CharSequence source)
Process the text

Parameters:
source - the sourcetext
Returns:
the result of text processing
See Also:
TextProcessor.process(CharSequence)


Copyright © 2013. All Rights Reserved.