org.oddjob.arooa.parsing
Class TextHandler

java.lang.Object
  extended by org.oddjob.arooa.parsing.TextHandler

public class TextHandler
extends Object

Handles accumulating text from XML text nodes during parsing.

Author:
rob

Constructor Summary
TextHandler()
           
 
Method Summary
 void addText(String text)
          Add text but only if it isn't just whitespace.
 String getText()
          Get the text or null if no text has been set.
 int length()
          Get the length of the text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextHandler

public TextHandler()
Method Detail

addText

public void addText(String text)
             throws ArooaException
Add text but only if it isn't just whitespace.

Parameters:
text -
Throws:
ArooaException

getText

public String getText()
Get the text or null if no text has been set.

Returns:

length

public int length()
Get the length of the text.

Returns:
The number of characters of text.