mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
22.59.2007 a88d0cab3caee99d585e9dd22823b9c4f80f796c
refs
author matthew_swift <matthew_swift@localhost>
Friday, June 22, 2007 17:59 +0200
committer matthew_swift <matthew_swift@localhost>
Friday, June 22, 2007 17:59 +0200
commita88d0cab3caee99d585e9dd22823b9c4f80f796c
tree d95715a64c06df6f4d5fbc549e4caf6cc4fa2b06 tree | zip | gz
parent 7c94a02ef7ed3965c644e2ed27966a9fb0eadb60 view | diff
Add various classes which facilitate generating tables in text-based applications.

This includes a generic API for constructing the table (TableBuilder) and three "table printers":

* TextTablePrinter: a pretty human-readable table that supports configurable padding, column sizes, separators, etc

* CSVTablePrinter: a table printer that outputs in CSV format (useful for spreadsheet imports)

* TabSeparatedTablePrinter: a table printer which uses tabs as field delimiters (e.g. useful for unix cut command)
7 files added
1681 ■■■■■ changed files
opends/src/server/org/opends/server/util/table/CSVTablePrinter.java 253 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/table/TabSeparatedTablePrinter.java 220 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/table/TableBuilder.java 381 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/table/TablePrinter.java 56 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/table/TableSerializer.java 160 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/table/TextTablePrinter.java 531 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/table/package-info.java 80 ●●●●● diff | view | raw | blame | history