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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TabularOutput
append(Object... values)
TabularOutput
flush()
Writer
getWriter()
TabularOutput
nextRow()
static TabularOutput.Builder
to(Writer writer)
-
-
-
Constructor Detail
-
TabularOutput
public TabularOutput(Writer writer, LinkedHashMap<String,TabularOutput.ColumnSpec> columns, String colSeparator, int flushCount, boolean outputHeader)
Where to write the output to.
-
-
Method Detail
-
to
public static TabularOutput.Builder to(Writer writer)
-
append
public TabularOutput append(Object... values)
-
nextRow
public TabularOutput nextRow()
-
getWriter
public Writer getWriter()
-
flush
public TabularOutput flush()
-
-