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 $

Authors:
Jon S. Stevens
Sam Ruby

Constructor Summary

OutputWrapper()
Empty constructor

Method Summary

String
outputString(Element element, boolean strip)
This method walks an Element tree into a String.

Constructor Details

OutputWrapper

public OutputWrapper()
Empty constructor

Method Details

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.