Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.anakia
Class OutputWrapper

    java.lang.Object
      org.jdom.output.XMLOutputter
          org.apache.anakia.OutputWrapper

All Implemented Interfaces:
  Cloneable

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 524478 2007-03-31 20:51:49Z wglass $
Author:
  Jon S. Stevens, Sam Ruby

Nested Class Summary

Nested classes inherited from class org.jdom.output.XMLOutputter
`XMLOutputter.NamespaceStack`

Field Summary

Fields inherited from class org.jdom.output.XMLOutputter
`currentFormat, preserveFormat`

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 org.jdom.output.XMLOutputter
`clone, escapeAttributeEntities, escapeElementEntities, getFormat, 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, printAttributes, printCDATA, printComment, printDeclaration, printDocType, printElement, printEntityRef, printProcessingInstruction, printText, setFormat, toString`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, 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.

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-${build.year} Apache Software Foundation. All Rights Reserved.