to top
public class

TableFormatter

extends Object
java.lang.Object
   ↳ com.android.tradefed.util.TableFormatter

Class Overview

Helper class to display a matrix of String elements so each element column is lined up

Summary

Public Constructors
TableFormatter()
Public Methods
void displayTable(List<List<String>> table, PrintWriter writer)
Display given String elements as an table with aligned columns.
TableFormatter setColumnSpacing(int spacing)
Sets the number of whitespace characters between each column.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TableFormatter ()

Public Methods

public void displayTable (List<List<String>> table, PrintWriter writer)

Display given String elements as an table with aligned columns.

Parameters
table a matrix of String elements. Rows can be different length
writer the PrintWriter to dump output to

public TableFormatter setColumnSpacing (int spacing)

Sets the number of whitespace characters between each column.

Parameters
spacing the number of whitespace characters
Returns