| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnu.staldal.xmltree.Node
nu.staldal.xmltree.Text
public class Text
Character content in an XML document. This class is immutable.
| Field Summary | 
|---|
| Fields inherited from class nu.staldal.xmltree.Node | 
|---|
| parent | 
| Constructor Summary | |
|---|---|
| Text(char[] data,
     int start,
     int length,
     boolean forceCopy)Constructs a text node from a char[] buffer. | |
| Text(java.lang.String value)Constructs a text node from a String. | |
| Method Summary | |
|---|---|
|  char[] | asCharArray()Get the charater content as a char[]. | 
|  java.lang.String | getValue()Get the charater content as a string | 
|  boolean | isWhitespaceNode()Check if this node consist of whitespace only. | 
|  void | toSAX(org.xml.sax.ContentHandler sax)Serialize this node, and recursively the (sub)tree beneath, into SAX2 events. | 
| Methods inherited from class nu.staldal.xmltree.Node | 
|---|
| getBaseURI, getColumnNumber, getInheritedAttribute, getLineNumber, getParent, getPreserveSpace, getPublicId, getSystemId, lookupNamespacePrefix, lookupNamespaceURI, setColumn, setLine, setPublicId, setSystemId | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Text(char[] data,
            int start,
            int length,
            boolean forceCopy)
data - a char[] bufferstart - the offset to read from in the bufferlength - the number of characters to read from the bufferforceCopy - force copying of the data, if false a reference to the buffer
            may be kept.public Text(java.lang.String value)
value - the string| Method Detail | 
|---|
public java.lang.String getValue()
public char[] asCharArray()
public void toSAX(org.xml.sax.ContentHandler sax)
           throws org.xml.sax.SAXException
Node
toSAX in class Nodesax - the SAX2 ContentHander to fire events on.
org.xml.sax.SAXException - if any of the ContentHandler methods throw itpublic boolean isWhitespaceNode()
Node
isWhitespaceNode in class Nodetrue if and only if this is a Text node which
         contains no other characters than whitespace.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||