Class HtmlStreamRenderer

  • All Implemented Interfaces:
    HtmlStreamEventReceiver

    @NotThreadSafe
    public class HtmlStreamRenderer
    extends Object
    implements HtmlStreamEventReceiver
    Given a series of HTML tokens, writes valid, normalized HTML to the output. The output will have well-defined tag boundaries, but there may be orphaned or missing close and open tags. The result of two renderers can always be concatenated to produce a larger snippet of HTML, but if the first was called with writeOpenTag("plaintext", ...), then any tags in the second will not be interpreted as tags in the concatenated version.