Package org.carrot2.util
Class TabularOutput
java.lang.Object
org.carrot2.util.TabularOutput
public final class TabularOutput extends Object
Tabular output data dump with automatically adjusted column widths and some other utilities.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTabularOutput.AlignmentColumn alignment.static classTabularOutput.Builderstatic classTabularOutput.ColumnSpecColumn specification. -
Constructor Summary
Constructors Constructor Description TabularOutput(Writer writer, LinkedHashMap<String,TabularOutput.ColumnSpec> columns, String colSeparator, int flushCount, boolean outputHeader)Where to write the output to. -
Method Summary
Modifier and Type Method Description TabularOutputappend(Object... values)TabularOutputflush()WritergetWriter()TabularOutputnextRow()static TabularOutput.Builderto(Writer writer)
-
Constructor Details
-
TabularOutput
public TabularOutput(Writer writer, LinkedHashMap<String,TabularOutput.ColumnSpec> columns, String colSeparator, int flushCount, boolean outputHeader)Where to write the output to.
-
-
Method Details