表格格式器

public class TableFormatter
extends Object

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


Helper類以顯示String元素的矩陣,因此每個元素列都已對齊

概括

公共建設者

TableFormatter ()

公開方法

void displayTable ( table, PrintWriter writer) displayTable ( table, PrintWriter writer)

將給定的String元素顯示為具有對齊列的表。

TableFormatter setColumnSpacing (int spacing)

設置每列之間的空白字符數。

公共建設者

表格格式器

public TableFormatter ()

公開方法

displayTable

public void displayTable ( table, 
                PrintWriter writer)

將給定的String元素顯示為具有對齊列的表。

參數
table :String元素的矩陣。行的長度可以不同

writer PrintWriter :將輸出轉儲到的ERROR(/PrintWriter)

setColumnSpacing

public TableFormatter setColumnSpacing (int spacing)

設置每列之間的空白字符數。

參數
spacing int :空格字符數

退貨
TableFormatter TableFormatter