TableFormatter
public
class
TableFormatter
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.TableFormatter |
輔助類別,用於顯示字串元素的矩陣,以便各元素欄排列整齊
摘要
公用建構函式 | |
---|---|
TableFormatter()
|
公用方法 | |
---|---|
void
|
displayTable(
將指定的字串元素顯示為具有對齊欄的資料表。 |
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 |