Package org.jdom2.output.support
Class WalkerTRIM_FULL_WHITE
java.lang.Object
org.jdom2.output.support.AbstractFormattedWalker
org.jdom2.output.support.WalkerTRIM_FULL_WHITE
- All Implemented Interfaces:
Walker
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
ConstructorsConstructorDescriptionWalkerTRIM_FULL_WHITE
(List<? extends Content> content, FormatStack fstack, boolean escape) Create the Trimmed walker instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
WalkerTRIM_FULL_WHITE
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: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.
-