RemoteZip
public
class
RemoteZip
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.RemoteZip |
किसी रिमोट zip फ़ाइल में मौजूद अलग-अलग फ़ाइलों को अनज़िप करने की सुविधाएं.
खास जानकारी
पब्लिक कंस्ट्रक्टर | |
|---|---|
RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader)
कंस्ट्रक्टर |
|
RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64)
|
|
RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64, boolean useCache)
कंस्ट्रक्टर |
|
पब्लिक मेथड | |
|---|---|
void
|
downloadFiles(File destDir, List<CentralDirectoryInfo> originalFiles)
रिमोट zip फ़ाइल में मौजूद, चुनिंदा फ़ाइलें डाउनलोड करें. |
long
|
getLastAccess()
यह ऑब्जेक्ट पिछली बार कब ऐक्सेस किया गया था, इसकी जानकारी पाएं. |
String
|
getRemoteFilePath()
रिमोट zip आर्टफ़ैक्ट का रिमोट फ़ाइल पाथ पाएं. |
List<CentralDirectoryInfo>
|
getZipEntries()
किसी रिमोट zip फ़ाइल की zip फ़ाइल एंट्री पाएं. |
void
|
setLastAccess(long timestamp)
ऑब्जेक्ट के पिछले ऐक्सेस का टाइमस्टैंप अपडेट करें. |
पब्लिक कंस्ट्रक्टर
RemoteZip
public RemoteZip (String remoteFilePath,
long fileSize,
IFileDownloader downloader)कंस्ट्रक्टर
| पैरामीटर | |
|---|---|
remoteFilePath |
String: डाउनलोड की जाने वाली फ़ाइल का रिमोट पाथ. |
fileSize |
long: रिमोट फ़ाइल का साइज़. |
downloader |
IFileDownloader: रिमोट फ़ाइल डाउनलोड करने के लिए इस्तेमाल किया जाने वाला @{link IFileDownloader}. |
RemoteZip
public RemoteZip (String remoteFilePath,
long fileSize,
IFileDownloader downloader,
boolean useZip64)| पैरामीटर | |
|---|---|
remoteFilePath |
String |
fileSize |
long |
downloader |
IFileDownloader |
useZip64 |
boolean |
RemoteZip
public RemoteZip (String remoteFilePath,
long fileSize,
IFileDownloader downloader,
boolean useZip64,
boolean useCache)कंस्ट्रक्टर
| पैरामीटर | |
|---|---|
remoteFilePath |
String: डाउनलोड की जाने वाली फ़ाइल का रिमोट पाथ. |
fileSize |
long: रिमोट फ़ाइल का साइज़. |
downloader |
IFileDownloader: रिमोट फ़ाइल डाउनलोड करने के लिए इस्तेमाल किया जाने वाला @{link IFileDownloader}. |
useZip64 |
boolean: आंशिक डाउनलोड के लिए zip64 फ़ॉर्मैट का इस्तेमाल करना है या नहीं. |
useCache |
boolean |
पब्लिक मेथड
downloadFiles
public void downloadFiles (File destDir,
List<CentralDirectoryInfo> originalFiles)रिमोट zip फ़ाइल में मौजूद, चुनिंदा फ़ाइलें डाउनलोड करें.
| पैरामीटर | |
|---|---|
destDir |
File: डाउनलोड की गई फ़ाइलों को रखने के लिए डायरेक्ट्री. |
originalFiles |
List: रिमोट zip फ़ाइल से डाउनलोड की जाने वाली एंट्री की सूची. |
| थ्रॉ | |
|---|---|
|
com.android.tradefed.build.BuildRetrievalError |
|
java.io.IOException |
BuildRetrievalError |
|
IOException |
|
getLastAccess
public long getLastAccess ()
यह ऑब्जेक्ट पिछली बार कब ऐक्सेस किया गया था, इसकी जानकारी पाएं.
| रिटर्न | |
|---|---|
long |
|
getRemoteFilePath
public String getRemoteFilePath ()
रिमोट zip आर्टफ़ैक्ट का रिमोट फ़ाइल पाथ पाएं.
| रिटर्न | |
|---|---|
String |
|
getZipEntries
public List<CentralDirectoryInfo> getZipEntries ()
किसी रिमोट zip फ़ाइल की zip फ़ाइल एंट्री पाएं.
| रिटर्न | |
|---|---|
List<CentralDirectoryInfo> |
|
| थ्रॉ | |
|---|---|
BuildRetrievalError |
अगर फ़ाइल डाउनलोड नहीं की जा सकी, तो यह गड़बड़ी दिखेगी. |
IOException |
|
setLastAccess
public void setLastAccess (long timestamp)
ऑब्जेक्ट के पिछले ऐक्सेस का टाइमस्टैंप अपडेट करें.
| पैरामीटर | |
|---|---|
timestamp |
long |