Module com.github.rvesse.airline.io
Class TroffPrinter
java.lang.Object
com.github.rvesse.airline.io.printers.TroffPrinter
Printer class for generating Troff output
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTroffPrinter(PrintWriter writer) TroffPrinter(PrintWriter writer, int indentation, TroffPrinter.BulletStyle style) -
Method Summary
Modifier and TypeMethodDescriptionvoidendList()voidfinish()voidflush()voidvoidvoidvoidvoidnextSection(String sectionTitle) voidMoves to the next titled list item without providing a title.voidnextTitledListItem(String title) protected voidvoidvoidvoidprintBoldItalic(String value) protected voidvoidprintItalic(String value) voidprintln()voidprotected voidprintNumberedBullet(boolean first) protected voidvoidprintTable(List<List<String>> rows, boolean hasHeader) protected voidvoidvoidvoidvoidvoidvoidStarts a titled list, the next line of text printed will form the titlevoidstartTitledList(String title) Starts a titled list with the given title
-
Constructor Details
-
TroffPrinter
-
TroffPrinter
-
-
Method Details
-
start
-
start
-
nextSection
-
print
-
println
-
println
public void println() -
lineBreak
public void lineBreak() -
printBold
-
printItalic
-
printBoldItalic
-
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
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
-
endList
public void endList() -
printTable
-
printBullet
protected void printBullet() -
printTitledBullet
protected void printTitledBullet() -
printPlainBullet
protected void printPlainBullet() -
printNumberedBullet
protected void printNumberedBullet(boolean first) -
flush
public void flush() -
finish
public void finish()
-