org.deckfour.spex
Class SXTextNode

java.lang.Object
  extended by org.deckfour.spex.SXNode
      extended by org.deckfour.spex.SXTextNode

public class SXTextNode
extends SXNode

Bogus wrapper class for text nodes. Text nodes can only be appended to tag nodes and represent tag-enclosed text fragements in an XML document.

Author:
Christian W. Guenther (christian@deckfour.org)

Field Summary
 
Fields inherited from class org.deckfour.spex.SXNode
tabLevel, tabString, writer
 
Constructor Summary
SXTextNode(String text, Writer aWriter, int aTabLevel, String aTabString)
          Constructs a new text node.
 
Method Summary
 void close()
          Explicitly closes this node.
 
Methods inherited from class org.deckfour.spex.SXNode
getTabLevel, indentLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SXTextNode

public SXTextNode(String text,
                  Writer aWriter,
                  int aTabLevel,
                  String aTabString)
           throws IOException
Constructs a new text node.

Parameters:
text - text contained in this node
aWriter - output writer
aTabLevel - tabulator level
aTabString - tabulator encoding string
Throws:
IOException
Method Detail

close

public void close()
           throws IOException
Description copied from class: SXNode
Explicitly closes this node.

Specified by:
close in class SXNode
Throws:
IOException