org.apache.velocity.anakia

Class 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,v 1.6.4.1 2004/03/03 23:22:04 geirm Exp $

Author: Jon S. Stevens Sam Ruby

Constructor Summary
OutputWrapper()
Empty constructor
Method Summary
StringoutputString(Element element, boolean strip)
This method walks an Element tree into a String.

Constructor Detail

OutputWrapper

public OutputWrapper()
Empty constructor

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>

Copyright B) 2002 Apache Software Foundation. All Rights Reserved.