java.lang.Object
com.github.rvesse.airline.io.printers.TroffPrinter

public class TroffPrinter extends Object
Printer class for generating Troff output
  • Field Details

  • Constructor Details

  • Method Details

    • start

      public void start(String title, int manSection)
    • start

      public void start(String title, int manSection, String header, String footer, String footerExtra)
    • nextSection

      public void nextSection(String sectionTitle)
    • print

      public void print(String value)
    • println

      public void println(String value)
    • println

      public void println()
    • lineBreak

      public void lineBreak()
    • printBold

      public void printBold(String value)
    • printItalic

      public void printItalic(String value)
    • printBoldItalic

      public void printBoldItalic(String value)
    • appendLine

      private void appendLine(String line)
    • startBulletedList

      public void startBulletedList()
    • startPlainList

      public void startPlainList()
    • startNumberedList

      public void startNumberedList()
    • startTitledList

      public void startTitledList()
      Starts a titled list, the next line of text printed will form the title
    • startTitledList

      public void startTitledList(String title)
      Starts a titled list with the given title
      Parameters:
      title -
    • nextBulletedListItem

      public void nextBulletedListItem()
    • nextPlainListItem

      public void nextPlainListItem()
    • notInList

      protected void notInList()
    • nextNumberedListItem

      public void nextNumberedListItem()
    • nextTitledListItem

      public void nextTitledListItem()
      Moves to the next titled list item without providing a title. The next line of text written will therefore be treated as the title for this item.
    • nextTitledListItem

      public void nextTitledListItem(String title)
    • endList

      public void endList()
    • printTable

      public void printTable(List<List<String>> rows, boolean hasHeader)
    • prepareLine

      private void prepareLine()
    • printBullet

      protected void printBullet()
    • printTitledBullet

      protected void printTitledBullet()
    • printPlainBullet

      protected void printPlainBullet()
    • printNumberedBullet

      protected void printNumberedBullet(boolean first)
    • asArg

      private String asArg(String arg)
    • escapeArg

      private String escapeArg(String arg)
    • escape

      private String escape(String line)
    • flush

      public void flush()
    • finish

      public void finish()