Class Xhtml5BaseSink

All Implemented Interfaces:
AutoCloseable, HtmlMarkup, Markup, XmlMarkup, Sink
Direct Known Subclasses:
XdocSink, Xhtml5Sink

public class Xhtml5BaseSink extends AbstractXmlSink implements HtmlMarkup
Abstract base xhtml5 sink implementation.
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • writer

      private final PrintWriter writer
      The PrintWriter to write the result.
    • HIDDEN_CLASS_PATTERN

      private static final Pattern HIDDEN_CLASS_PATTERN
      Used to identify if a class string contains `hidden`
    • textBuffer

      private StringBuffer textBuffer
      Used to collect text events mainly for the head events.
    • headFlag

      private boolean headFlag
      An indication on if we're inside a head.
    • contentStack

      protected Stack<HTML.Tag> contentStack
      Keep track of the main and div tags for content events.
    • inlineStack

      protected Stack<List<HTML.Tag>> inlineStack
      Keep track of the closing tags for inline events.
    • paragraphFlag

      private boolean paragraphFlag
      An indication on if we're inside a paragraph flag.
    • verbatimMode

      private Xhtml5BaseSink.VerbatimMode verbatimMode
      An indication on if we're in verbatim mode and if so, surrounded by which tags.
    • cellJustifStack

      private final LinkedList<int[]> cellJustifStack
      Stack of alignment int[] of table cells.
    • isCellJustifStack

      private final LinkedList<Boolean> isCellJustifStack
      Stack of justification of table cells.
    • cellCountStack

      private final LinkedList<Integer> cellCountStack
      Stack of current table cell.
    • evenTableRow

      private boolean evenTableRow
      Used to style successive table rows differently.
    • tableContentWriterStack

      private final LinkedList<StringWriter> tableContentWriterStack
      The stack of StringWriter to write the table result temporary, so we could play with the output DOXIA-177.
    • tableCaptionWriterStack

      private final LinkedList<StringWriter> tableCaptionWriterStack
    • tableCaptionXMLWriterStack

      private final LinkedList<org.codehaus.plexus.util.xml.PrettyPrintXMLWriter> tableCaptionXMLWriterStack
    • tableCaptionStack

      private final LinkedList<String> tableCaptionStack
      The stack of table caption
    • tableAttributes

      protected MutableAttributeSet tableAttributes
      used to store attributes passed to table().
  • Constructor Details

    • Xhtml5BaseSink

      public Xhtml5BaseSink(Writer out)
      Constructor, initialize the PrintWriter.
      Parameters:
      out - The writer to write the result.
  • Method Details