Package org.jdom2.output.support
Class WalkerNORMALIZE
- java.lang.Object
-
- org.jdom2.output.support.AbstractFormattedWalker
-
- org.jdom2.output.support.WalkerNORMALIZE
-
- All Implemented Interfaces:
Walker
public class WalkerNORMALIZE 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
Constructors Constructor Description WalkerNORMALIZE(java.util.List<? extends Content> content, FormatStack fstack, boolean escape)
Create the Trimmed walker instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
WalkerNORMALIZE
public WalkerNORMALIZE(java.util.List<? extends Content> content, FormatStack fstack, boolean escape)
Create the Trimmed walker instance.- Parameters:
content
- The list of content to formatfstack
- 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 classAbstractFormattedWalker
- Parameters:
mtext
- the MultiText to append to.offset
- The first Text-like content to add to the MultiTextlen
- The number of Text-like content items to add.
-
-