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 class
TabularOutput.Alignment
Column alignment.static class
TabularOutput.Builder
static class
TabularOutput.ColumnSpec
Column 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 TabularOutput
append(Object... values)
TabularOutput
flush()
Writer
getWriter()
TabularOutput
nextRow()
static TabularOutput.Builder
to(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