Package com.itextpdf.kernel.pdf.tagutils
Class TagTreeIteratorFlusher
java.lang.Object
com.itextpdf.kernel.pdf.tagutils.AbstractAvoidDuplicatesTagTreeIteratorHandler
com.itextpdf.kernel.pdf.tagutils.TagTreeIteratorFlusher
- All Implemented Interfaces:
ITagTreeIteratorHandler
Class that flushes struct elements while iterating over struct tree root with
TagTreeIterator
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(IStructureNode node) Checks whether the element should be traversed.void
processElement
(IStructureNode elem) Called when the next element is reached during the traversal to process it.setWaitingTags
(Set<PdfDictionary> waitingTags) Sets waiting tags forTagTreeIteratorFlusher
.
-
Field Details
-
waitingTags
-
waitingTagsUsed
private boolean waitingTagsUsed
-
-
Constructor Details
-
TagTreeIteratorFlusher
public TagTreeIteratorFlusher()Creates a new instance ofTagTreeIteratorFlusher
.
-
-
Method Details
-
setWaitingTags
Sets waiting tags forTagTreeIteratorFlusher
.- Parameters:
waitingTags
- waiting tags to set- Returns:
- this same
TagTreeIteratorFlusher
instance
-
accept
Description copied from interface:ITagTreeIteratorHandler
Checks whether the element should be traversed.- Specified by:
accept
in interfaceITagTreeIteratorHandler
- Overrides:
accept
in classAbstractAvoidDuplicatesTagTreeIteratorHandler
- Parameters:
node
- the element to check- Returns:
true
if the iteration should be continued,false
otherwise
-
processElement
Description copied from interface:ITagTreeIteratorHandler
Called when the next element is reached during the traversal to process it.- Parameters:
elem
- the element to process
-