Package com.powsybl.commons.io.table
Class AbstractTableFormatter
java.lang.Object
com.powsybl.commons.io.table.AbstractTableFormatter
- All Implemented Interfaces:
TableFormatter
,AutoCloseable
- Direct Known Subclasses:
AsciiTableFormatter
,CsvTableFormatter
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractTableFormatter
(Writer writer, TableFormatterConfig config, Column... columns) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TableFormatter
writeCell
(boolean b) writeCell
(char c) writeCell
(double d) writeCell
(float f) writeCell
(int i) writeEmptyCells
(int count) writeEmptyLines
(int count) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.powsybl.commons.io.table.TableFormatter
close, writeCell, writeComment
-
Field Details
-
writer
-
config
-
columns
-
column
protected int column
-
-
Constructor Details
-
AbstractTableFormatter
-
-
Method Details
-
write
- Throws:
IOException
-
writeCell
- Specified by:
writeCell
in interfaceTableFormatter
- Throws:
IOException
-
writeEmptyCell
- Specified by:
writeEmptyCell
in interfaceTableFormatter
- Throws:
IOException
-
writeEmptyCells
- Specified by:
writeEmptyCells
in interfaceTableFormatter
- Throws:
IOException
-
writeEmptyLine
- Specified by:
writeEmptyLine
in interfaceTableFormatter
- Throws:
IOException
-
writeEmptyLines
- Specified by:
writeEmptyLines
in interfaceTableFormatter
- Throws:
IOException
-
writeCell
- Specified by:
writeCell
in interfaceTableFormatter
- Throws:
IOException
-
writeCell
- Specified by:
writeCell
in interfaceTableFormatter
- Throws:
IOException
-
writeCell
- Specified by:
writeCell
in interfaceTableFormatter
- Throws:
IOException
-
writeCell
- Specified by:
writeCell
in interfaceTableFormatter
- Throws:
IOException
-
writeCell
- Specified by:
writeCell
in interfaceTableFormatter
- Throws:
IOException
-