RemoteZip
public class RemoteZip
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.RemoteZip |
Utilitaires pour décompresser des fichiers individuels dans un fichier zip distant.
Résumé
Constructeurs publics | |
---|---|
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64, boolean useCache) Constructeur | |
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64) | |
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader) Constructeur |
Méthodes publiques | |
---|---|
void | downloadFiles (File destDir, files) downloadFiles (File destDir, files) Téléchargez les fichiers spécifiés dans le fichier zip distant. |
long | getLastAccess () Obtenir la dernière fois que cet objet a été accédé. |
String | getRemoteFilePath () Obtenez le chemin d'accès au fichier distant de l'artefact zip distant. |
getZipEntries () Obtient les entrées de fichier zip d'un fichier zip distant. | |
void | setLastAccess (long timestamp) Mettre à jour l'horodatage du dernier accès de l'objet. |
Constructeurs publics
RemoteZip
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64, boolean useCache)
Constructeur
Paramètres | |
---|---|
remoteFilePath | String : le chemin distant vers le fichier à télécharger. |
fileSize | long : taille du fichier distant. |
downloader | IFileDownloader : un @{link IFileDownloader} utilisé pour télécharger un fichier distant. |
useZip64 | boolean : s'il faut utiliser le format zip64 pour le téléchargement partiel ou non. |
useCache | boolean |
RemoteZip
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64)
Paramètres | |
---|---|
remoteFilePath | String |
fileSize | long |
downloader | IFileDownloader |
useZip64 | boolean |
RemoteZip
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader)
Constructeur
Paramètres | |
---|---|
remoteFilePath | String : le chemin distant vers le fichier à télécharger. |
fileSize | long : taille du fichier distant. |
downloader | IFileDownloader : un @{link IFileDownloader} utilisé pour télécharger un fichier distant. |
Méthodes publiques
Telecharger des fichiers
public void downloadFiles (File destDir,files)
Téléchargez les fichiers spécifiés dans le fichier zip distant.
Paramètres | |
---|---|
destDir | File : le répertoire dans lequel placer les fichiers téléchargés. |
files |
Lance | |
---|---|
| com.android.tradefed.build.BuildRetrievalError |
| IOException |
BuildRetrievalError |
getLastAccess
public long getLastAccess ()
Obtenir la dernière fois que cet objet a été accédé.
Retour | |
---|---|
long |
getRemoteFilePath
public String getRemoteFilePath ()
Obtenez le chemin d'accès au fichier distant de l'artefact zip distant.
Retour | |
---|---|
String |
getZipEntries
publicgetZipEntries ()
Obtient les entrées de fichier zip d'un fichier zip distant.
Retour | |
---|---|
Lance | |
---|---|
BuildRetrievalError | si le fichier n'a pas pu être téléchargé. |
setLastAccess
public void setLastAccess (long timestamp)
Mettre à jour l'horodatage du dernier accès de l'objet.
Paramètres | |
---|---|
timestamp | long |