Class AptSink

All Implemented Interfaces:
AutoCloseable, Markup, TextMarkup, AptMarkup, Sink

public class AptSink extends AbstractTextSink implements AptMarkup
APT generator implementation.
Note: The encoding used is UTF-8.
Since:
1.0
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • buffer

      private StringBuffer buffer
      A buffer that holds the current text when headerFlag or bufferFlag set to true.
    • tableCaptionBuffer

      private StringBuilder tableCaptionBuffer
      A buffer that holds the table caption.
    • authors

      private Collection<String> authors
      authors.
    • title

      private String title
      title.
    • date

      private String date
      date.
    • startFlag

      private boolean startFlag
      startFlag.
    • tableCaptionFlag

      private boolean tableCaptionFlag
      tableCaptionFlag.
    • tableCellFlag

      private boolean tableCellFlag
      tableCellFlag.
    • headerFlag

      private boolean headerFlag
      headerFlag.
    • bufferFlag

      private boolean bufferFlag
      bufferFlag.
    • itemFlag

      private boolean itemFlag
      itemFlag.
    • verbatimFlag

      private boolean verbatimFlag
      verbatimFlag.
    • isSource

      private boolean isSource
      verbatim source.
    • gridFlag

      private boolean gridFlag
      gridFlag for tables.
    • cellCount

      private int cellCount
      number of cells in a table.
    • writer

      private final PrintWriter writer
      The writer to use.
    • cellJustif

      private int[] cellJustif
      justification of table cells.
    • rowLine

      private String rowLine
      a line of a row in a table.
    • listNestingIndent

      private String listNestingIndent
      listNestingIndent.
    • listStyles

      private final Stack<String> listStyles
      listStyles.
    • inlineStack

      protected Stack<List<String>> inlineStack
      Keep track of the closing tags for inline events.
  • Constructor Details

    • AptSink

      protected AptSink(Writer writer)
      Constructor, initialize the Writer and the variables.
      Parameters:
      writer - not null writer to write the result. Should be an UTF-8 Writer. You could use newWriter methods from org.codehaus.plexus.util.WriterFactory.
  • Method Details