org.kefirsf.bb
Interface TextProcessor

All Known Implementing Classes:
BBProcessor, EscapeProcessor, TextProcessorAdapter, TextProcessorChain

public interface TextProcessor

The interface of text processors

Author:
Kefir

Method Summary
 CharSequence process(CharSequence source)
          Process the text.
 String process(String source)
          Process the text
 StringBuffer process(StringBuffer source)
          Process the text
 StringBuilder process(StringBuilder source)
          Process the text
 

Method Detail

process

CharSequence process(CharSequence source)
Process the text.

ATTENTION!!! Do not use java.nio.CharBuffer. CharBuffer has invalid realization of subSequence methods from interface java.lang.CharSequence since 1.6.0_10 version of JRE. http://bugs.sun.com/view_bug.do?bug_id=6795561

Parameters:
source - the source text
Returns:
the result of text processing

process

String process(String source)
Process the text

Parameters:
source - the source text
Returns:
the result of text processing

process

StringBuilder process(StringBuilder source)
Process the text

Parameters:
source - the source text
Returns:
the result of text processing

process

StringBuffer process(StringBuffer source)
Process the text

Parameters:
source - the source text
Returns:
the result of text processing


Copyright © 2013. All Rights Reserved.