Package org.jdom.output.support
Class WalkerTRIM
- java.lang.Object
-
- org.jdom.output.support.AbstractFormattedWalker
-
- org.jdom.output.support.WalkerTRIM
-
- All Implemented Interfaces:
Walker
public class WalkerTRIM extends AbstractFormattedWalker
This Walker implementation will produce trimmed text content.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jdom.output.support.AbstractFormattedWalker
AbstractFormattedWalker.MultiText, AbstractFormattedWalker.Trim
-
-
Constructor Summary
Constructors Constructor Description WalkerTRIM(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 voidanalyzeMultiText(AbstractFormattedWalker.MultiText mtext, int offset, int len)Add the content at the specified indices to the provided MultiText.-
Methods inherited from class org.jdom.output.support.AbstractFormattedWalker
get, hasNext, isAllText, isAllWhitespace, isCDATA, next, text
-
-
-
-
Constructor Detail
-
WalkerTRIM
public WalkerTRIM(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:AbstractFormattedWalkerAdd the content at the specified indices to the provided MultiText.- Specified by:
analyzeMultiTextin 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.
-
-