JDOM
2.0.5

org.jdom2.output.support
Class AbstractOutputProcessor

java.lang.Object
  extended by org.jdom2.output.support.AbstractOutputProcessor
Direct Known Subclasses:
AbstractDOMOutputProcessor, AbstractSAXOutputProcessor, AbstractStAXEventProcessor, AbstractStAXStreamProcessor, AbstractXMLOutputProcessor

public abstract class AbstractOutputProcessor
extends java.lang.Object

Methods common/useful for all Outputter processors.

Since:
JDOM2
Author:
Rolf Lear

Constructor Summary
AbstractOutputProcessor()
           
 
Method Summary
protected  Walker buildWalker(FormatStack fstack, java.util.List<? extends Content> content, boolean escape)
          Create a walker to process Content List values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOutputProcessor

public AbstractOutputProcessor()
Method Detail

buildWalker

protected Walker buildWalker(FormatStack fstack,
                             java.util.List<? extends Content> content,
                             boolean escape)
Create a walker to process Content List values.

If you require a custom walker to process content in a specific way then you probably want to override this method to build the walker you want.

Parameters:
fstack - The current FormatStack for the walker (this should not be modified by the Walker).
content - The list of content to walk.
escape - If you want the Text values to be XMLEscaped then supply a non-null EscapeStrategy to use.
Returns:
the created walker.

JDOM
2.0.5

Copyright 2013 Jason Hunter, Brett McLaughlin. All Rights Reserved.