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)

This constructor is deprecated. use LogFile(String, String, boolean, boolean) instead.

LogFile(String path, String url, boolean compressed, boolean text)

Construct a LogFile with filepath, URL, and LogDataType metadata.

Public methods

String getPath()

Get the absolute path.

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

LogFile (String path, 
                String url)

This constructor is deprecated.
use LogFile(String, String, boolean, boolean) instead.

Construct a LogFile with filepath and URL metadata.

Parameters
path String: The absolute path to the saved file.
url String: The URL where the saved file can be accessed.

LogFile

LogFile (String path, 
                String url, 
                boolean compressed, 
                boolean text)

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.
compressed boolean: Whether the saved file is compressed.
text boolean: Whether the saved file can be displayed as text.

Public methods

getPath

String getPath ()

Get the absolute path.

Returns
String

getUrl

String getUrl ()

Get the URL where the saved file can be accessed.

Returns
String

isCompressed

boolean isCompressed ()

Get whether the file is compressed.

Returns
boolean

isText

boolean isText ()

Get whether the file can be displayed as text.

Returns
boolean