リモートジップ
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) downloadFiles (File destDir, files) 指定されたファイルをリモート zip ファイルでダウンロードします。 |
long | getLastAccess () このオブジェクトが最後にアクセスされた時刻を取得します。 |
String | getRemoteFilePath () リモート zip アーティファクトのリモート ファイル パスを取得します。 |
getZipEntries () リモート zip ファイルの zip ファイル エントリを取得します。 | |
void | setLastAccess (long timestamp) オブジェクトの最終アクセス タイムスタンプを更新します。 |
パブリック コンストラクター
リモートジップ
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64)
コンストラクタ
パラメーター | |
---|---|
remoteFilePath | String : ダウンロードするファイルへのリモート パス。 |
fileSize | long : リモート ファイルのサイズ。 |
downloader | IFileDownloader : リモート ファイルのダウンロードに使用される @{link IFileDownloader}。 |
useZip64 | boolean : 部分ダウンロードに zip64 形式を使用するかどうか。 |
リモートジップ
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader)
コンストラクタ
パラメーター | |
---|---|
remoteFilePath | String : ダウンロードするファイルへのリモート パス。 |
fileSize | long : リモート ファイルのサイズ。 |
downloader | IFileDownloader : リモート ファイルのダウンロードに使用される @{link IFileDownloader}。 |
公開メソッド
ダウンロードファイル
public void downloadFiles (File destDir,files)
指定されたファイルをリモート zip ファイルでダウンロードします。
パラメーター | |
---|---|
destDir | File : ダウンロードしたファイルを配置するディレクトリ。 |
files |
スロー | |
---|---|
| com.android.tradefed.build.BuildRetrievalError |
| IO例外 |
BuildRetrievalError |
getLastAccess
public long getLastAccess ()
このオブジェクトが最後にアクセスされた時刻を取得します。
戻り値 | |
---|---|
long |
getRemoteFilePath
public String getRemoteFilePath ()
リモート zip アーティファクトのリモート ファイル パスを取得します。
戻り値 | |
---|---|
String |
getZipEntries
publicgetZipEntries ()
リモート zip ファイルの zip ファイル エントリを取得します。
戻り値 | |
---|---|
スロー | |
---|---|
BuildRetrievalError | ファイルをダウンロードできなかった場合。 |
setLastAccess
public void setLastAccess (long timestamp)
オブジェクトの最終アクセス タイムスタンプを更新します。
パラメーター | |
---|---|
timestamp | long |