Тестовый ресурс

public class TestResource
extends Object

java.lang.Object
com.android.tradefed.cluster.TestResource


Класс для моделирования сообщения TestResource, возвращаемого API TFC.

Краткое содержание

Общедоступные методы

static TestResource fromJson (JSONObject json)
static List< TestResource > fromJsonArray (JSONArray jsonArray)
boolean getDecompress ()
String getDecompressDir ()
File getDecompressDir (File parentDir)
List<String> getDecompressFiles ()
File getFile (File parentDir)
String getName ()
String getUrl ()
boolean mountZip ()
JSONObject toJson ()

Общедоступные методы

изJson

public static TestResource fromJson (JSONObject json)

Параметры
json JSONObject

Возвраты
TestResource

изJsonArray

public static List<TestResource> fromJsonArray (JSONArray jsonArray)

Параметры
jsonArray JSONArray

Возвраты
List< TestResource >

Броски
JSONException

getDecompress

public boolean getDecompress ()

Возвраты
boolean

getDecompressDir

public String getDecompressDir ()

Возвраты
String

getDecompressDir

public File getDecompressDir (File parentDir)

Параметры
parentDir File

Возвраты
File

getDecompressFiles

public List<String> getDecompressFiles ()

Возвраты
List<String>

получить файл

public File getFile (File parentDir)

Параметры
parentDir File

Возвраты
File

getName

public String getName ()

Возвраты
String

getUrl

public String getUrl ()

Возвраты
String

mountZip

public boolean mountZip ()

Возвраты
boolean

toJson

public JSONObject toJson ()

Возвраты
JSONObject

Броски
JSONException