public abstract class AbstractTableFormatter extends Object implements TableFormatter
Modifier and Type | Field and Description |
---|---|
protected int |
column |
protected Column[] |
columns |
protected TableFormatterConfig |
config |
protected Writer |
writer |
Modifier | Constructor and Description |
---|---|
protected |
AbstractTableFormatter(Writer writer,
TableFormatterConfig config,
Column... columns) |
Modifier and Type | Method and Description |
---|---|
protected abstract TableFormatter |
write(String value) |
TableFormatter |
writeCell(boolean b) |
TableFormatter |
writeCell(char c) |
TableFormatter |
writeCell(double d) |
TableFormatter |
writeCell(float f) |
TableFormatter |
writeCell(int i) |
TableFormatter |
writeCell(String s) |
TableFormatter |
writeEmptyCell() |
TableFormatter |
writeEmptyCells(int count) |
TableFormatter |
writeEmptyLine() |
TableFormatter |
writeEmptyLines(int count) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, writeCell, writeComment
protected final Writer writer
protected final TableFormatterConfig config
protected final Column[] columns
protected int column
protected AbstractTableFormatter(Writer writer, TableFormatterConfig config, Column... columns)
protected abstract TableFormatter write(String value) throws IOException
IOException
public TableFormatter writeCell(String s) throws IOException
writeCell
in interface TableFormatter
IOException
public TableFormatter writeEmptyCell() throws IOException
writeEmptyCell
in interface TableFormatter
IOException
public TableFormatter writeEmptyCells(int count) throws IOException
writeEmptyCells
in interface TableFormatter
IOException
public TableFormatter writeEmptyLine() throws IOException
writeEmptyLine
in interface TableFormatter
IOException
public TableFormatter writeEmptyLines(int count) throws IOException
writeEmptyLines
in interface TableFormatter
IOException
public TableFormatter writeCell(char c) throws IOException
writeCell
in interface TableFormatter
IOException
public TableFormatter writeCell(int i) throws IOException
writeCell
in interface TableFormatter
IOException
public TableFormatter writeCell(float f) throws IOException
writeCell
in interface TableFormatter
IOException
public TableFormatter writeCell(double d) throws IOException
writeCell
in interface TableFormatter
IOException
public TableFormatter writeCell(boolean b) throws IOException
writeCell
in interface TableFormatter
IOException
Copyright © 2020. All rights reserved.