Package com.powsybl.commons.io.table
Interface TableFormatter
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractTableFormatter
,AmplDatTableFormatter
,AsciiTableFormatter
,CsvTableFormatter
public interface TableFormatter extends AutoCloseable
- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
close()
TableFormatter
writeCell(boolean b)
TableFormatter
writeCell(char c)
TableFormatter
writeCell(double d)
TableFormatter
writeCell(float f)
TableFormatter
writeCell(int i)
TableFormatter
writeCell(String s)
default TableFormatter
writeCell(String s, int colspan)
TableFormatter
writeComment(String comment)
TableFormatter
writeEmptyCell()
TableFormatter
writeEmptyCells(int count)
TableFormatter
writeEmptyLine()
TableFormatter
writeEmptyLines(int count)
-
-
-
Method Detail
-
writeComment
TableFormatter writeComment(String comment) throws IOException
- Throws:
IOException
-
writeCell
TableFormatter writeCell(String s) throws IOException
- Throws:
IOException
-
writeCell
default TableFormatter writeCell(String s, int colspan) throws IOException
- Throws:
IOException
-
writeEmptyCell
TableFormatter writeEmptyCell() throws IOException
- Throws:
IOException
-
writeEmptyCells
TableFormatter writeEmptyCells(int count) throws IOException
- Throws:
IOException
-
writeEmptyLine
TableFormatter writeEmptyLine() throws IOException
- Throws:
IOException
-
writeEmptyLines
TableFormatter writeEmptyLines(int count) throws IOException
- Throws:
IOException
-
writeCell
TableFormatter writeCell(char c) throws IOException
- Throws:
IOException
-
writeCell
TableFormatter writeCell(int i) throws IOException
- Throws:
IOException
-
writeCell
TableFormatter writeCell(float f) throws IOException
- Throws:
IOException
-
writeCell
TableFormatter writeCell(double d) throws IOException
- Throws:
IOException
-
writeCell
TableFormatter writeCell(boolean b) throws IOException
- Throws:
IOException
-
close
void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
-