Package org.htmlunit.cyberneko
Class LostText
- java.lang.Object
-
- org.htmlunit.cyberneko.LostText
-
class LostText extends java.lang.Object
Container for text that should be hold and re-feed later like text before <html> that will be re-feed in <body>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
LostText.Entry
Pair of (text, augmentation)
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<LostText.Entry>
entries_
-
Constructor Summary
Constructors Constructor Description LostText()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(XMLString text, Augmentations augs)
Adds some text that need to be re-feed later.void
clear()
Clears the listboolean
isEmpty()
Indicates if this container contains somethingvoid
refeed(XMLDocumentHandler tagBalancer)
Pushes the characters into theXMLDocumentHandler
-
-
-
Field Detail
-
entries_
private final java.util.List<LostText.Entry> entries_
-
-
Method Detail
-
add
public void add(XMLString text, Augmentations augs)
Adds some text that need to be re-feed later. The information gets copied.
-
refeed
public void refeed(XMLDocumentHandler tagBalancer)
Pushes the characters into theXMLDocumentHandler
- Parameters:
tagBalancer
- the tag balancer that will receive the events
-
isEmpty
public boolean isEmpty()
Indicates if this container contains something- Returns:
true
if no lost text has been collected
-
clear
public void clear()
Clears the list
-
-