|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.writersforge.catalan.transform.BaseNodeProcessor
|
+--org.writersforge.catalan.transform.TextProcessor
|
+--org.writersforge.catalan.transform.TokenSplitter
A text processor which breaks apart its String contents into smaller parts, based on its own parameters. This processor expects only String input, and will produce only String output. The number of processed items may be equal to or greater than the input, but the total character count will always be the same; thus, this processor may break strings apart, but will not change the data content.
| Constructor Summary | |
TokenSplitter(java.lang.String[] tokens)
Creates a new instance of TokenSplitter. |
|
| Method Summary | |
protected java.util.List |
processText(java.lang.String text)
Processes the text node. |
void |
setIncludeDelimiters(boolean includeDelimiters)
Sets the policy for including delimiters in the output. |
java.lang.String |
toString()
Convert this object to a String value. |
| Methods inherited from class org.writersforge.catalan.transform.TextProcessor |
processNode |
| Methods inherited from class org.writersforge.catalan.transform.BaseNodeProcessor |
addLeftover, end, getLeftovers, getNodes, start |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TokenSplitter(java.lang.String[] tokens)
tokens - an array of tokens at which to split the content| Method Detail |
public void setIncludeDelimiters(boolean includeDelimiters)
includeDelimiters - true to include delimiters in the outputprotected java.util.List processText(java.lang.String text)
processText in class TextProcessortext - the text to process
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||