public class ASCIITableFormatter extends AbstractTableFormatter
Constructor and Description |
---|
ASCIITableFormatter() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the document by closing open rows and tables and writing the
Desmo-J version footer
|
void |
closeRow()
Writes a newline character
|
void |
closeTable()
Writes 2 newline characters
|
void |
closeTableNoTopTag()
Calls closeTable
|
static void |
disableFooter()
Disables the table footer (for all ASCII tables).
|
java.lang.String |
getFileFormat() |
void |
open(java.lang.String name)
Opens the table (without effect for ASCII tables)
|
void |
openRow()
Only sets rowOpen flag to true
|
void |
openTable(java.lang.String heading)
Opens the table by writing the heading and a newline character
|
void |
writeCell(java.lang.String s,
int spanning)
Writes the given string followed by a separator character
|
void |
writeHeading(int i,
java.lang.String s)
Writes the given heading enclosed in asterisks followed by a newline
character.
|
void |
writeHeadingCell(java.lang.String s)
Writes a heading cell.
|
void |
writeHorizontalRuler()
Writes a line of asterisks and a newline.
|
openRow, rowIsOpen, setOutput, setTimePrecision, tableIsOpen, timePrecision, writeTime
public void closeRow()
TableFormatter.closeRow()
public void closeTable()
TableFormatter.closeTable()
public void closeTableNoTopTag()
TableFormatter.closeTableNoTopTag()
public void openRow()
TableFormatter.openRow()
public void openTable(java.lang.String heading)
heading
- heading to writeTableFormatter.openTable(java.lang.String)
public void writeCell(java.lang.String s, int spanning)
s
- string to writespanning
- number of cells to span (ignored)desmoj.core.report.TableFormatter#writeCell(java.lang.String)
public void writeHeading(int i, java.lang.String s)
i
- heading size (without effect)s
- heading to writeTableFormatter.writeHeading(int,
java.lang.String)
public void writeHeadingCell(java.lang.String s)
s
- heading to writeTableFormatter.writeHeadingCell(java.lang.String)
public void writeHorizontalRuler()
TableFormatter.writeHorizontalRuler()
public void open(java.lang.String name)
name
- table name (not displayed)public void close()
public java.lang.String getFileFormat()
"txt"
public static void disableFooter()