LogFile
public
class
LogFile
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.result.LogFile |
此類別可保留已儲存記錄檔的中繼資料。
摘要
公用建構函式 | |
|---|---|
LogFile(String path, String url, boolean isCompressed, LogDataType type, long size)
使用檔案路徑、網址和 |
|
LogFile(String path, String url, LogDataType type)
使用檔案路徑、網址和 |
|
公用方法 | |
|---|---|
String
|
getPath()
取得絕對路徑。 |
long
|
getSize()
取得記錄檔案的大小。 |
LogDataType
|
getType()
取得已記錄檔案的 |
String
|
getUrl()
取得可存取已儲存檔案的網址。 |
boolean
|
isCompressed()
取得檔案是否已壓縮。 |
boolean
|
isText()
取得檔案是否可顯示為文字。 |
公用建構函式
LogFile
public LogFile (String path,
String url,
boolean isCompressed,
LogDataType type,
long size)使用檔案路徑、網址和 LogDataType 中繼資料建構 LogFile。LogFile.LogFile(String, String, LogDataType) 的變化版本,可明確設定壓縮狀態,因為在某些情況下,我們會手動壓縮檔案,但為了追蹤目的,我們希望保留原始類型。
| 參數 | |
|---|---|
path |
String:儲存檔案的絕對路徑。 |
url |
String:可存取已儲存檔案的網址。 |
isCompressed |
boolean:檔案是否已壓縮。 |
type |
LogDataType:記錄檔案的 LogDataType。 |
size |
long:記錄檔案的大小,以位元組為單位。 |
LogFile
public LogFile (String path,
String url,
LogDataType type)使用檔案路徑、網址和 LogDataType 中繼資料建構 LogFile。
| 參數 | |
|---|---|
path |
String:儲存檔案的絕對路徑。 |
url |
String:可存取已儲存檔案的網址。 |
type |
LogDataType:記錄檔案的 LogDataType。 |
公用方法
getPath
public String getPath ()
取得絕對路徑。
| 傳回 | |
|---|---|
String |
|
getSize
public long getSize ()
取得記錄檔案的大小。
| 傳回 | |
|---|---|
long |
|
getUrl
public String getUrl ()
取得可存取已儲存檔案的網址。
| 傳回 | |
|---|---|
String |
|
isCompressed
public boolean isCompressed ()
取得檔案是否已壓縮。
| 傳回 | |
|---|---|
boolean |
|
isText
public boolean isText ()
取得檔案是否可顯示為文字。
| 傳回 | |
|---|---|
boolean |
|