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)
Constructeur |
|
RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64)
|
|
RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64, boolean useCache)
Constructeur |
|
Méthodes publiques | |
|---|---|
void
|
downloadFiles(File destDir, List<CentralDirectoryInfo> originalFiles)
Téléchargez les fichiers spécifiés dans le fichier ZIP distant. |
long
|
getLastAccess()
Obtenez la dernière heure d'accès à cet objet. |
String
|
getRemoteFilePath()
Obtenez le chemin d'accès au fichier ZIP distant. |
List<CentralDirectoryInfo>
|
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)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. |
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,
boolean useZip64,
boolean useCache)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 s'il faut utiliser le format zip64 pour le téléchargement partiel. |
useCache |
boolean |
Méthodes publiques
downloadFiles
public void downloadFiles (File destDir,
List<CentralDirectoryInfo> originalFiles)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. |
originalFiles |
List : liste des entrées à télécharger à partir du fichier ZIP distant. |
| Génère | |
|---|---|
|
com.android.tradefed.build.BuildRetrievalError |
|
java.io.IOException |
BuildRetrievalError |
|
IOException |
|
getLastAccess
public long getLastAccess ()
Obtenez la dernière heure d'accès à cet objet.
| Renvoie | |
|---|---|
long |
|
getRemoteFilePath
public String getRemoteFilePath ()
Obtenez le chemin d'accès au fichier ZIP distant.
| Renvoie | |
|---|---|
String |
|
getZipEntries
public List<CentralDirectoryInfo> getZipEntries ()
Récupère les entrées de fichier ZIP d'un fichier ZIP distant.
| Renvoie | |
|---|---|
List<CentralDirectoryInfo> |
|
| Génère | |
|---|---|
BuildRetrievalError |
si le fichier n'a pas pu être téléchargé. |
IOException |
|
setLastAccess
public void setLastAccess (long timestamp)
Mettez à jour le code temporel du dernier accès à l'objet.
| Paramètres | |
|---|---|
timestamp |
long |