परीक्षण संसाधन

public class TestResource
extends Object

java.lang.ऑब्जेक्ट
com.android.tradefed.cluster.TestResource


TFC API द्वारा लौटाए गए TestResource संदेश को मॉडल करने के लिए एक क्लास।

सारांश

सार्वजनिक तरीके

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 ()

सार्वजनिक तरीके

जेसन से

public static TestResource fromJson (JSONObject json)

पैरामीटर
json JSONObject

रिटर्न
TestResource

JsonArray से

public static  fromJsonArray (JSONArray jsonArray)

पैरामीटर
jsonArray JSONArray

रिटर्न

फेंकता
JSONException

डीकंप्रेस प्राप्त करें

public boolean getDecompress ()

रिटर्न
boolean

getDecompressDir

public String getDecompressDir ()

रिटर्न
String

getDecompressDir

public File getDecompressDir (File parentDir)

पैरामीटर
parentDir File

रिटर्न
File

getDecompressफ़ाइलें

public  getDecompressFiles ()

रिटर्न

दस्तावेज लें

public File getFile (File parentDir)

पैरामीटर
parentDir File

रिटर्न
File

नाम प्राप्त करें

public String getName ()

रिटर्न
String

यूआरएल प्राप्त करें

public String getUrl ()

रिटर्न
String

माउंटज़िप

public boolean mountZip ()

रिटर्न
boolean

toJson

public JSONObject toJson ()

रिटर्न
JSONObject

फेंकता
JSONException