org.apache.velocity.anakia
Class OutputWrapper

java.lang.Object
  |
  +--org.jdom.output.XMLOutputter
        |
        +--org.apache.velocity.anakia.OutputWrapper
All Implemented Interfaces:
java.lang.Cloneable

public class OutputWrapper
extends org.jdom.output.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

Field Summary
 
Fields inherited from class org.jdom.output.XMLOutputter
 
Constructor Summary
OutputWrapper()
          Empty constructor
 
Method Summary
 java.lang.String outputString(org.jdom.Element element, boolean strip)
          This method walks an Element tree into a String.
 
Methods inherited from class org.jdom.output.XMLOutputter
clone, createNamespaceStack, escapeAttributeEntities, escapeElementEntities, indent, makeWriter, makeWriter, newline, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, outputElementContent, outputElementContent, outputString, outputString, outputString, outputString, outputString, outputString, outputString, outputString, outputString, outputString, parseArgs, printAttributes, printCDATA, printComment, printContentRange, printDeclaration, printDocType, printElement, printEntityRef, printProcessingInstruction, printString, printText, printTextRange, setEncoding, setExpandEmptyElements, setIndent, setIndent, setIndent, setIndentSize, setLineSeparator, setNewlines, setOmitDeclaration, setOmitEncoding, setTextNormalize, setTextTrim, setTrimAllWhite, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OutputWrapper

public OutputWrapper()
Empty constructor

Method Detail

outputString

public java.lang.String outputString(org.jdom.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 ? 2003 Apache Software Foundation. All Rights Reserved.