RemoteZip

public class RemoteZip
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.RemoteZip


リモート zip ファイル内の個々のファイルを解凍するためのユーティリティ。

概要

パブリック コンストラクタ

RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64)

コンストラクタ

RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader)

コンストラクタ

パブリック メソッド

void downloadFiles(File destDir, files)

指定されたファイルをリモート zip ファイルにダウンロードします。

long getLastAccess()

このオブジェクトが最後にアクセスされた時刻を取得します。

String getRemoteFilePath()

リモート zip アーティファクトのリモート ファイルパスを取得します。

getZipEntries()

リモート zip ファイルの zip ファイル エントリを取得します。

void setLastAccess(long timestamp)

オブジェクトの最終アクセスのタイムスタンプを更新します。

パブリック コンストラクタ

RemoteZip

public RemoteZip (String remoteFilePath, 
                long fileSize, 
                IFileDownloader downloader, 
                boolean useZip64)

コンストラクタ

パラメータ
remoteFilePath String: ダウンロードするファイルのリモートパス。

fileSize long: リモート ファイルのサイズ。

downloader IFileDownloader: リモート ファイルのダウンロードに使用される @{link IFileDownloader}。

useZip64 boolean: 部分ダウンロードに zip64 形式を使用するかどうか。

RemoteZip

public RemoteZip (String remoteFilePath, 
                long fileSize, 
                IFileDownloader downloader)

コンストラクタ

パラメータ
remoteFilePath String: ダウンロードするファイルのリモートパス。

fileSize long: リモート ファイルのサイズ。

downloader IFileDownloader: リモート ファイルのダウンロードに使用される @{link IFileDownloader}。

パブリック メソッド

downloadFiles

public void downloadFiles (File destDir, 
                 files)

指定されたファイルをリモート zip ファイルにダウンロードします。

パラメータ
destDir File: ダウンロードしたファイルを配置するディレクトリ。

files : リモート zip ファイルからダウンロードするエントリのリスト。

例外
com.android.tradefed.build.BuildRetrievalError
BuildRetrievalError

getLastAccess

public long getLastAccess ()

このオブジェクトが最後にアクセスされた時刻を取得します。

戻り値
long

getRemoteFilePath

public String getRemoteFilePath ()

リモート zip アーティファクトのリモート ファイルパスを取得します。

戻り値
String

getZipEntries

public  getZipEntries ()

リモート zip ファイルの zip ファイル エントリを取得します。

戻り値

例外
BuildRetrievalError ダウンロードできなかった場合は、

setLastAccess

public void setLastAccess (long timestamp)

オブジェクトの最終アクセスのタイムスタンプを更新します。

パラメータ
timestamp long