org.apache.velocity.anakia
Class OutputWrapper

java.lang.Object
  extended by XMLOutputter
      extended by org.apache.velocity.anakia.OutputWrapper

public class OutputWrapper
extends XMLOutputter

This class extends XMLOutputter in order to provide a way to walk an Element tree into a String.

Version:
$Id: OutputWrapper.java 463298 2006-10-12 16:10:32Z henning $
Author:
Jon S. Stevens, Sam Ruby

Constructor Summary
OutputWrapper()
          Empty constructor
OutputWrapper(Format f)
           
 
Method Summary
 String outputString(Element element, boolean strip)
          This method walks an Element tree into a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputWrapper

public OutputWrapper()
Empty constructor


OutputWrapper

public OutputWrapper(Format f)
Parameters:
f -
Method Detail

outputString

public String outputString(Element element,
                           boolean strip)
This method walks an Element tree into a String. The cool thing about it is that it will strip off the first Element. For example, if you have:

<td> foo <strong>bar</strong> ack </td>

It will output

foo <strong>bar</strong> ack </td>

Parameters:
element -
strip -
Returns:
The output string.