JDOM
2.0.5

org.jdom2.output.support
Class WalkerTRIM

java.lang.Object
  extended by org.jdom2.output.support.AbstractFormattedWalker
      extended by org.jdom2.output.support.WalkerTRIM
All Implemented Interfaces:
Walker

public class WalkerTRIM
extends AbstractFormattedWalker

This Walker implementation will produce trimmed text content.

Author:
Rolf Lear

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdom2.output.support.AbstractFormattedWalker
AbstractFormattedWalker.MultiText, AbstractFormattedWalker.Trim
 
Constructor Summary
WalkerTRIM(java.util.List<? extends Content> content, FormatStack fstack, boolean escape)
          Create the Trimmed walker instance.
 
Method Summary
protected  void analyzeMultiText(AbstractFormattedWalker.MultiText mtext, int offset, int len)
          Add the content at the specified indices to the provided MultiText.
 
Methods inherited from class org.jdom2.output.support.AbstractFormattedWalker
get, hasNext, isAllText, isAllWhitespace, isCDATA, next, text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WalkerTRIM

public WalkerTRIM(java.util.List<? extends Content> content,
                  FormatStack fstack,
                  boolean escape)
Create the Trimmed walker instance.

Parameters:
content - The list of content to format
fstack - The current stack.
escape - Whether Text values should be escaped.
Method Detail

analyzeMultiText

protected void analyzeMultiText(AbstractFormattedWalker.MultiText mtext,
                                int offset,
                                int len)
Description copied from class: AbstractFormattedWalker
Add the content at the specified indices to the provided MultiText.

Specified by:
analyzeMultiText in class AbstractFormattedWalker
Parameters:
mtext - the MultiText to append to.
offset - The first Text-like content to add to the MultiText
len - The number of Text-like content items to add.

JDOM
2.0.5

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