| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public static List | Returns: an empty immutable list if the provided table is emptythe provided table to compute widths from rows)Compute the size of the largest string of each column of the provided table |
| public static List | Returns: an empty immutable list if the provided table is emptythe provided table to compute widths from rows)Compute the size of the largest string of each column of the provided table |
| private static int | Returns: the new current running widththe current running width runningWidth, String the part to append part, int the maxwidth for this column maxWidth, StringBuilder the string builder result to append to result)Append the specified part of a string to the string builder and add spaces where needed. |
| private static int | Returns: the new current running width (which is always 0, since the line has been filled to the end with spaces)the current running width runningWidth, int the max width for the column maxWidth, StringBuilder the result to append spaces to result)Given a current running width and a max width, fill the remaining space on the current line with spaces. |
| public static void | formatOutput(List<List<String>>
2-dimensional array of data table, List<Integer> Maximum widths of each column to control wrapping maxWidths, boolean If true then add "-" to format string leftJustifiedRows, Writer Writer to use for output writer)This method outputs the input data in a tabular format with wrapping of lines |
| public static void | formatOutput(List<List<String>>
2-dimensional array of data table, int[] Maximum widths of each column to control wrapping maxWidths, boolean If true then add "-" to format string leftJustifiedRows, Writer Writer to use for output writer)This method outputs the input data in a tabular format with wrapping of lines |
| public static void | formatOutput(String[][]
2-dimensional array of data table, int[] Maximum widths of each column to control wrapping maxWidths, boolean If true then add "-" to format string leftJustifiedRows, Writer Writer to use for output writer)This method outputs the input data in a tabular format with wrapping of lines |
| public static void | formatOutput(String[][]
2-dimensional array of data table, List<Integer> Maximum widths of each column to control wrapping maxWidths, boolean If true then add "-" to format string leftJustifiedRows, Writer Writer to use for output writer)This method outputs the input data in a tabular format with wrapping of lines |
| public static void | formatUnwrappedOutput(List<List<String>>
2-dimensional array of data table, boolean If true then add "-" to format string leftJustifiedRows, Writer Writer to use for output writer)This method outputs the input data in a tabular format *without* wrapping of lines |
| private static String |
| TableOutput | back to summary |
|---|---|
| public TableOutput() | |
| allEmptyStrings | back to summary |
|---|---|
| private static boolean allEmptyStrings(String[] strings) | |
| computeMaxWidths | back to summary |
|---|---|
| public static List Compute the size of the largest string of each column of the provided table | |
| computeMaxWidths | back to summary |
|---|---|
| public static List Compute the size of the largest string of each column of the provided table
| |
| doAppend | back to summary |
|---|---|
| private static int doAppend(int runningWidth, String part, int maxWidth, StringBuilder result) Append the specified part of a string to the string builder and add spaces where needed.
| |
| fillLineWithSpaces | back to summary |
|---|---|
| private static int fillLineWithSpaces(int runningWidth, int maxWidth, StringBuilder result) Given a current running width and a max width, fill the remaining space on the current line with spaces.
| |
| formatOutput | back to summary |
|---|---|
| public static void formatOutput(List<List<String>> table, List<Integer> maxWidths, boolean leftJustifiedRows, Writer writer) throws LiquibaseException This method outputs the input data in a tabular format with wrapping of lines | |
| formatOutput | back to summary |
|---|---|
| public static void formatOutput(List<List<String>> table, int[] maxWidths, boolean leftJustifiedRows, Writer writer) throws LiquibaseException This method outputs the input data in a tabular format with wrapping of lines | |
| formatOutput | back to summary |
|---|---|
| public static void formatOutput(String[][] table, int[] maxWidths, boolean leftJustifiedRows, Writer writer) throws LiquibaseException This method outputs the input data in a tabular format with wrapping of lines | |
| formatOutput | back to summary |
|---|---|
| public static void formatOutput(String[][] table, List<Integer> maxWidths, boolean leftJustifiedRows, Writer writer) throws LiquibaseException This method outputs the input data in a tabular format with wrapping of lines | |
| formatUnwrappedOutput | back to summary |
|---|---|
| public static void formatUnwrappedOutput(List<List<String>> table, boolean leftJustifiedRows, Writer writer) throws LiquibaseException This method outputs the input data in a tabular format *without* wrapping of lines | |
| padColumn | back to summary |
|---|---|
| private static String padColumn(String col, int maxWidth) | |