TableFormatter

public class TableFormatter
extends Object

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


用于显示字符串元素矩阵的辅助类,以便每个元素列对齐

摘要

公共构造函数

TableFormatter()

公共方法

void displayTable( table, PrintWriter writer)

将给定字符串元素显示为列对齐的表格。

TableFormatter setColumnSpacing(int spacing)

设置各列之间的空白字符数。

公共构造函数

TableFormatter

public TableFormatter ()

公共方法

displayTable

public void displayTable ( table, 
                PrintWriter writer)

将给定字符串元素显示为列对齐的表格。

参数
table :一个字符串元素矩阵。行可以具有不同的长度

writer PrintWriter:要将输出转储到的 ERROR(/PrintWriter)

setColumnSpacing

public TableFormatter setColumnSpacing (int spacing)

设置各列之间的空白字符数。

参数
spacing int:空白字符数

返回
TableFormatter TableFormatter