Package org.basex.util
Class Table
java.lang.Object
org.basex.util.Table
This is a table representation for textual table output.
It should be guaranteed that the
header object has the
same number of entries as all contents string arrays.- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
header
Table header. -
align
Alignment (false: left, true: right alignment). -
contents
Table contents. -
description
Data description; if available, will be added as footer.
-
-
Constructor Details
-
Table
public Table()Default constructor. -
Table
Constructor with table input.- Parameters:
in- textual table input
-
-
Method Details
-
sort
Sorts the table by the first column.- Returns:
- self reference
-
toTop
Moves the specified string to top.- Parameters:
top- entry to be moved to the top- Returns:
- self reference
-
finish
public byte[] finish()Returns a textual representation of the table.- Returns:
- text
-
toString
-