Class 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)
    • Constructor Summary

      Constructors 
      Constructor Description
      LostText()  
    • Constructor Detail

      • LostText

        LostText()
    • 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 the XMLDocumentHandler
        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