Zasób testowy
public class TestResource
extends Object
Obiekt Java.lang.Object | |
↳ | com.android.tradefed.cluster.TestResource |
Klasa służąca do modelowania komunikatu TestResource zwróconego przez interfejs API TFC.
Streszczenie
Metody publiczne | |
---|---|
static TestResource | fromJson (JSONObject json) |
static | fromJsonArray (JSONArray jsonArray) |
boolean | getDecompress () |
String | getDecompressDir () |
File | getDecompressDir (File parentDir) |
getDecompressFiles () | |
File | getFile (File parentDir) |
String | getName () |
String | getUrl () |
boolean | mountZip () |
JSONObject | toJson () |
Metody publiczne
od Jsona
public static TestResource fromJson (JSONObject json)
Parametry | |
---|---|
json | JSONObject |
Zwroty | |
---|---|
TestResource |
z JsonArray
public staticfromJsonArray (JSONArray jsonArray)
Parametry | |
---|---|
jsonArray | JSONArray |
Zwroty | |
---|---|
Rzuca | |
---|---|
JSONException |
pobierzDekompresję
public boolean getDecompress ()
Zwroty | |
---|---|
boolean |
pobierzDecompressDir
public String getDecompressDir ()
Zwroty | |
---|---|
String |
pobierzDecompressDir
public File getDecompressDir (File parentDir)
Parametry | |
---|---|
parentDir | File |
Zwroty | |
---|---|
File |
pobierzDecompressFiles
publicgetDecompressFiles ()
Zwroty | |
---|---|
dostać plik
public File getFile (File parentDir)
Parametry | |
---|---|
parentDir | File |
Zwroty | |
---|---|
File |
pobierzNazwę
public String getName ()
Zwroty | |
---|---|
String |
getUrl
public String getUrl ()
Zwroty | |
---|---|
String |
zamontujZip
public boolean mountZip ()
Zwroty | |
---|---|
boolean |
doJsona
public JSONObject toJson ()
Zwroty | |
---|---|
JSONObject |
Rzuca | |
---|---|
JSONException |
Zasób testowy
public class TestResource
extends Object
Obiekt Java.lang.Object | |
↳ | com.android.tradefed.cluster.TestResource |
Klasa służąca do modelowania komunikatu TestResource zwróconego przez interfejs API TFC.
Streszczenie
Metody publiczne | |
---|---|
static TestResource | fromJson (JSONObject json) |
static | fromJsonArray (JSONArray jsonArray) |
boolean | getDecompress () |
String | getDecompressDir () |
File | getDecompressDir (File parentDir) |
getDecompressFiles () | |
File | getFile (File parentDir) |
String | getName () |
String | getUrl () |
boolean | mountZip () |
JSONObject | toJson () |
Metody publiczne
od Jsona
public static TestResource fromJson (JSONObject json)
Parametry | |
---|---|
json | JSONObject |
Zwroty | |
---|---|
TestResource |
z JsonArray
public staticfromJsonArray (JSONArray jsonArray)
Parametry | |
---|---|
jsonArray | JSONArray |
Zwroty | |
---|---|
Rzuca | |
---|---|
JSONException |
pobierzDekompresję
public boolean getDecompress ()
Zwroty | |
---|---|
boolean |
pobierzDecompressDir
public String getDecompressDir ()
Zwroty | |
---|---|
String |
pobierzDecompressDir
public File getDecompressDir (File parentDir)
Parametry | |
---|---|
parentDir | File |
Zwroty | |
---|---|
File |
pobierzDecompressFiles
publicgetDecompressFiles ()
Zwroty | |
---|---|
dostać plik
public File getFile (File parentDir)
Parametry | |
---|---|
parentDir | File |
Zwroty | |
---|---|
File |
pobierzNazwę
public String getName ()
Zwroty | |
---|---|
String |
getUrl
public String getUrl ()
Zwroty | |
---|---|
String |
zamontujZip
public boolean mountZip ()
Zwroty | |
---|---|
boolean |
doJsona
public JSONObject toJson ()
Zwroty | |
---|---|
JSONObject |
Rzuca | |
---|---|
JSONException |