Code postal distant

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, files)

Téléchargez les fichiers spécifiés dans le fichier ZIP distant.

long getLastAccess()

Permet d'obtenir la date et l'heure du dernier accès à 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 d'un fichier ZIP distant.

void setLastAccess(long timestamp)

Met à jour le code temporel du dernier accès de l'objet.

Constructeurs publics

Code postal distant

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 les téléchargements partiels.

Code postal distant

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

Permet d'obtenir la date et l'heure du dernier accès à cet objet.

Renvoie
long

getRemoteFilePath

public String getRemoteFilePath ()

Obtenez le chemin d'accès au fichier distant de l'artefact ZIP distant.

Renvoie
String

getZipEntrées

public  getZipEntries ()

Récupère les entrées 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)

Met à jour le code temporel du dernier accès de l'objet.

Paramètres
timestamp long