org.apache.velocity.anakia
Class OutputWrapper

java.lang.Object
  |
  +--XMLOutputter
        |
        +--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,v 1.5 2001/03/20 00:47:44 jon Exp $
Author:
Jon S. Stevens
, Sam Ruby
See Also:
Serialized Form

Constructor Summary
OutputWrapper()
          Empty constructor
 
Method Summary
 java.lang.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

Method Detail

outputString

public java.lang.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 © 2001 Apache Software Foundation. All Rights Reserved.