Package com.powsybl.commons.io.table
Class CsvTableFormatter
java.lang.Object
com.powsybl.commons.io.table.AbstractTableFormatter
com.powsybl.commons.io.table.CsvTableFormatter
- All Implemented Interfaces:
TableFormatter
,AutoCloseable
- Direct Known Subclasses:
AmplDatTableFormatter
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Field Summary
FieldsFields inherited from class com.powsybl.commons.io.table.AbstractTableFormatter
column, columns, config, writer
-
Constructor Summary
ConstructorsConstructorDescriptionCsvTableFormatter
(Writer writer, String title, char separator, String invalidString, boolean writeHeader, boolean writeTitle, Locale locale, Column... columns) CsvTableFormatter
(Writer writer, String title, char separator, String invalidString, boolean writeHeader, Locale locale, Column... columns) CsvTableFormatter
(Writer writer, String title, TableFormatterConfig config, Column... columns) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected TableFormatter
writeComment
(String comment) protected void
Methods inherited from class com.powsybl.commons.io.table.AbstractTableFormatter
writeCell, writeCell, writeCell, writeCell, writeCell, writeCell, writeEmptyCell, writeEmptyCells, writeEmptyLine, writeEmptyLines
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
writeCell
-
Field Details
-
title
-
headerDone
protected boolean headerDone
-
-
Constructor Details
-
CsvTableFormatter
public CsvTableFormatter(Writer writer, String title, TableFormatterConfig config, Column... columns) -
CsvTableFormatter
-
CsvTableFormatter
-
-
Method Details
-
writeHeader
- Throws:
IOException
-
writeComment
- Throws:
IOException
-
write
- Specified by:
write
in classAbstractTableFormatter
- Throws:
IOException
-
close
- Throws:
IOException
-