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