Package pl.poznan.put.utility
Class TabularExporter
- java.lang.Object
-
- pl.poznan.put.utility.TabularExporter
-
public final class TabularExporter extends Object
A collections of methods for easy export of tabular data to CSV files.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidexport(TableModel tableModel, OutputStream stream)Exports the tabular data in CSV format and pushed it to an output stream.
-
-
-
Method Detail
-
export
public static void export(TableModel tableModel, OutputStream stream) throws IOException
Exports the tabular data in CSV format and pushed it to an output stream.- Parameters:
tableModel- The data to export.stream- The stream that will receive CSV data.- Throws:
IOException- When writing to the stream fails.
-
-