Class WalkerTRIM
java.lang.Object
org.jdom2.output.support.AbstractFormattedWalker
org.jdom2.output.support.WalkerTRIM
- All Implemented Interfaces:
Walker
This Walker implementation will produce trimmed text content.
- Author:
- Rolf Lear
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractFormattedWalker
AbstractFormattedWalker.MultiText, AbstractFormattedWalker.Trim -
Constructor Summary
ConstructorsConstructorDescriptionWalkerTRIM(List<? extends Content> content, FormatStack fstack, boolean escape) Create the Trimmed walker instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanalyzeMultiText(AbstractFormattedWalker.MultiText mtext, int offset, int len) Add the content at the specified indices to the provided MultiText.Methods inherited from class AbstractFormattedWalker
get, hasNext, isAllText, isAllWhitespace, isCDATA, next, text
-
Constructor Details
-
WalkerTRIM
Create the Trimmed walker instance.- Parameters:
content- The list of content to formatfstack- The current stack.escape- Whether Text values should be escaped.
-
-
Method Details
-
analyzeMultiText
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.
-