RemoteZip
public
class
RemoteZip
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.RemoteZip |
Utilitaires permettant de décompresser des fichiers individuels dans un fichier ZIP distant.
Résumé
Constructeurs publics | |
|---|---|
RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64)
Constructeur |
|
RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader)
Constructeur |
|
Méthodes publiques | |
|---|---|
void
|
downloadFiles(File destDir,
Téléchargez les fichiers spécifiés dans le fichier ZIP distant. |
long
|
getLastAccess()
Obtenez la date et l'heure de la dernière utilisation de cet objet. |
String
|
getRemoteFilePath()
Obtenez le chemin d'accès au fichier distant de l'artefact ZIP distant. |
|
getZipEntries()
Récupère les entrées de fichier ZIP d'un fichier ZIP distant. |
void
|
setLastAccess(long timestamp)
Mettez à jour le code temporel du dernier accès à l'objet. |
Constructeurs publics
RemoteZip
public RemoteZip (String remoteFilePath,
long fileSize,
IFileDownloader downloader,
boolean useZip64)Constructeur
| Paramètres | |
|---|---|
remoteFilePath |
String: chemin d'accès distant au fichier à télécharger. |
fileSize |
long: taille du fichier distant. |
downloader |
IFileDownloader : @{link IFileDownloader} utilisé pour télécharger un fichier distant. |
useZip64 |
boolean: indique si le format zip64 doit être utilisé pour le téléchargement partiel ou non.
|
RemoteZip
public RemoteZip (String remoteFilePath,
long fileSize,
IFileDownloader downloader)Constructeur
| Paramètres | |
|---|---|
remoteFilePath |
String: chemin d'accès distant au fichier à télécharger. |
fileSize |
long: taille du fichier distant. |
downloader |
IFileDownloader : @{link IFileDownloader} utilisé pour télécharger un fichier distant.
|
Méthodes publiques
downloadFiles
public void downloadFiles (File destDir,
files) Téléchargez les fichiers spécifiés dans le fichier ZIP distant.
| Paramètres | |
|---|---|
destDir |
File: répertoire dans lequel placer les fichiers téléchargés. |
files |
: liste des entrées à télécharger à partir du fichier ZIP distant. |
| Génère | |
|---|---|
|
com.android.tradefed.build.BuildRetrievalError |
BuildRetrievalError |
|
getLastAccess
public long getLastAccess ()
Obtenez la date et l'heure de la dernière utilisation de cet objet.
| Renvoie | |
|---|---|
long |
|
getRemoteFilePath
public String getRemoteFilePath ()
Obtenez le chemin d'accès au fichier distant de l'artefact ZIP distant.
| Renvoie | |
|---|---|
String |
|
getZipEntries
publicgetZipEntries ()
Récupère les entrées de fichier ZIP d'un fichier ZIP distant.
| Renvoie | |
|---|---|
|
|
| Génère | |
|---|---|
BuildRetrievalError |
si le fichier n'a pas pu être téléchargé. |
setLastAccess
public void setLastAccess (long timestamp)
Mettez à jour le code temporel du dernier accès à l'objet.
| Paramètres | |
|---|---|
timestamp |
long |