public class TroffPrinter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TroffPrinter.BulletStyle
Supported bullet style
|
| Constructor and Description |
|---|
TroffPrinter(PrintWriter writer) |
TroffPrinter(PrintWriter writer,
int indentation,
TroffPrinter.BulletStyle style) |
| Modifier and Type | Method and Description |
|---|---|
void |
endList() |
void |
finish() |
void |
flush() |
void |
lineBreak() |
void |
nextBulletedListItem() |
void |
nextNumberedListItem() |
void |
nextPlainListItem() |
void |
nextSection(String sectionTitle) |
void |
nextTitledListItem()
Moves to the next titled list item without providing a title.
|
void |
nextTitledListItem(String title) |
protected void |
notInList() |
void |
print(String value) |
void |
printBold(String value) |
void |
printBoldItalic(String value) |
protected void |
printBullet() |
void |
printItalic(String value) |
void |
println() |
void |
println(String value) |
protected void |
printNumberedBullet(boolean first) |
protected void |
printPlainBullet() |
void |
printTable(List<List<String>> rows,
boolean hasHeader) |
protected void |
printTitledBullet() |
void |
start(String title,
int manSection) |
void |
start(String title,
int manSection,
String header,
String footer,
String footerExtra) |
void |
startBulletedList() |
void |
startNumberedList() |
void |
startPlainList() |
void |
startTitledList()
Starts a titled list, the next line of text printed will form the title
|
void |
startTitledList(String title)
Starts a titled list with the given title
|
public TroffPrinter(PrintWriter writer)
public TroffPrinter(PrintWriter writer, int indentation, TroffPrinter.BulletStyle style)
public void start(String title, int manSection)
public void start(String title, int manSection, String header, String footer, String footerExtra)
public void nextSection(String sectionTitle)
public void print(String value)
public void println(String value)
public void println()
public void lineBreak()
public void printBold(String value)
public void printItalic(String value)
public void printBoldItalic(String value)
public void startBulletedList()
public void startPlainList()
public void startNumberedList()
public void startTitledList()
public void startTitledList(String title)
title - public void nextBulletedListItem()
public void nextPlainListItem()
protected void notInList()
public void nextNumberedListItem()
public void nextTitledListItem()
public void nextTitledListItem(String title)
public void endList()
protected void printBullet()
protected void printTitledBullet()
protected void printPlainBullet()
protected void printNumberedBullet(boolean first)
public void flush()
public void finish()
Copyright © 2012–2022. All rights reserved.