Package org.basex.util
Class Table
- java.lang.Object
-
- org.basex.util.Table
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
finish()
Returns a textual representation of the table.Table
sort()
Sorts the table by the first column.String
toString()
Table
toTop(byte[] top)
Moves the specified string to top.
-
-
-
Constructor Detail
-
Table
public Table()
Default constructor.
-
Table
public Table(String input)
Constructor with table input.- Parameters:
input
- textual table input
-
-
Method Detail
-
sort
public Table sort()
Sorts the table by the first column.- Returns:
- self reference
-
toTop
public Table toTop(byte[] top)
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
-
-