LogFile
public
class
LogFile
extends Object
java.lang.Object | |
↳ | com.android.tradefed.result.LogFile |
Class to hold the metadata for a saved log file.
Summary
Public constructors | |
---|---|
LogFile(String path, String url, boolean isCompressed, LogDataType type, long size)
Construct a |
|
LogFile(String path, String url, LogDataType type)
Construct a |
Public methods | |
---|---|
String
|
getPath()
Get the absolute path. |
long
|
getSize()
Get the size of the logged file. |
LogDataType
|
getType()
Get the |
String
|
getUrl()
Get the URL where the saved file can be accessed. |
boolean
|
isCompressed()
Get whether the file is compressed. |
boolean
|
isText()
Get whether the file can be displayed as text. |
Public constructors
LogFile
public LogFile (String path, String url, boolean isCompressed, LogDataType type, long size)
Construct a LogFile
with filepath, URL, and LogDataType
metadata. Variation
of LogFile.LogFile(String, String, LogDataType)
where the compressed state can be set
explicitly because in some cases, we manually compress the file but we want to keep the
original type for tracking purpose.
Parameters | |
---|---|
path |
String : The absolute path to the saved file. |
url |
String : The URL where the saved file can be accessed. |
isCompressed |
boolean : Whether the file was compressed or not. |
type |
LogDataType : The LogDataType of the logged file. |
size |
long : The size of the logged file in bytes. |
LogFile
public LogFile (String path, String url, LogDataType type)
Construct a LogFile
with filepath, URL, and LogDataType
metadata.
Parameters | |
---|---|
path |
String : The absolute path to the saved file. |
url |
String : The URL where the saved file can be accessed. |
type |
LogDataType : The LogDataType of the logged file. |
Public methods
getPath
public String getPath ()
Get the absolute path.
Returns | |
---|---|
String |
getSize
public long getSize ()
Get the size of the logged file.
Returns | |
---|---|
long |
getType
public LogDataType getType ()
Get the LogDataType
of the file that was logged.
Returns | |
---|---|
LogDataType |
getUrl
public String getUrl ()
Get the URL where the saved file can be accessed.
Returns | |
---|---|
String |
isCompressed
public boolean isCompressed ()
Get whether the file is compressed.
Returns | |
---|---|
boolean |
isText
public boolean isText ()
Get whether the file can be displayed as text.
Returns | |
---|---|
boolean |