Class FoSink

    • Field Detail

      • out

        private final java.io.PrintWriter out
        For writing the result.
      • listStack

        private final java.util.Stack<NumberedListItem> listStack
        Used to get the current position in numbered lists.
      • config

        private final FoConfiguration config
        Used to get attributes for a given FO element.
      • section

        private int section
        Counts the current section level.
      • subsection

        private int subsection
        Counts the current subsection level.
      • subsubsection

        private int subsubsection
        Counts the current subsubsection level.
      • verbatim

        private boolean verbatim
        Verbatim flag.
      • inFigure

        private boolean inFigure
        figure flag.
      • encoding

        private final java.lang.String encoding
      • languageId

        private final java.lang.String languageId
      • tableGridStack

        private final java.util.LinkedList<java.lang.Boolean> tableGridStack
        Stack of drawing borders on table cells.
      • cellJustifStack

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

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

        private final java.util.LinkedList<java.lang.Integer> cellCountStack
        Stack of current table cell.
      • tableContentWriterStack

        private final java.util.LinkedList<java.io.StringWriter> tableContentWriterStack
        The stack of StringWriter to write the table result temporary, so we could play with the output and fix fo.
      • tableCaptionWriterStack

        private final java.util.LinkedList<java.io.StringWriter> tableCaptionWriterStack
      • tableCaptionXMLWriterStack

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

        private final java.util.LinkedList<java.lang.String> tableCaptionStack
        The stack of table caption
      • inlineStack

        protected java.util.Stack<java.util.List<javax.swing.text.html.HTML.Tag>> inlineStack
        Keep track of the closing tags for inline events.
      • warnMessages

        protected java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> warnMessages
        Map of warn messages with a String as key to describe the error type and a Set as value. Using to reduce warn messages.
    • Constructor Detail

      • FoSink

        protected FoSink​(java.io.Writer writer)
        Constructor, initialize the Writer.
        Parameters:
        writer - not null writer to write the result. Should be an UTF-8 Writer. You could use newXmlWriter methods from WriterFactory.
      • FoSink

        protected FoSink​(java.io.Writer writer,
                         java.lang.String encoding)
        Constructor, initialize the Writer and tells which encoding is used.
        Parameters:
        writer - not null writer to write the result.
        encoding - the encoding used, that should be written to the generated HTML content if not null.
      • FoSink

        protected FoSink​(java.io.Writer writer,
                         java.lang.String encoding,
                         java.lang.String languageId)
        Constructor, initialize the Writer and tells which encoding and languageId are used.
        Parameters:
        writer - not null writer to write the result.
        encoding - the encoding used, that should be written to the generated HTML content if not null.
        languageId - language identifier for the root element as defined by IETF BCP 47, Tags for the Identification of Languages; in addition, the empty string may be specified.