リモートジップ
public class RemoteZip
extends Object
java.lang.オブジェクト | |
↳ | com.android.tradefed.util.RemoteZip |
リモート zip ファイル内の個々のファイルを解凍するユーティリティ。
まとめ
パブリックコンストラクター | |
---|---|
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64, boolean useCache) コンストラクタ | |
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64) | |
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader) コンストラクタ |
パブリックメソッド | |
---|---|
void | downloadFiles (File destDir, originalFiles) downloadFiles (File destDir, originalFiles) リモート zip ファイル内の指定されたファイルをダウンロードします。 |
long | getLastAccess () このオブジェクトが最後にアクセスされた時間を取得します。 |
String | getRemoteFilePath () リモート zip アーティファクトのリモート ファイル パスを取得します。 |
getZipEntries () リモート zip ファイルの zip ファイル エントリを取得します。 | |
void | setLastAccess (long timestamp) オブジェクトの最終アクセスのタイムスタンプを更新します。 |
パブリックコンストラクター
リモートジップ
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64, boolean useCache)
コンストラクタ
パラメーター | |
---|---|
remoteFilePath | String : ダウンロードするファイルへのリモート パス。 |
fileSize | long : リモート ファイルのサイズ。 |
downloader | IFileDownloader : リモート ファイルをダウンロードするために使用される @{link IFileDownloader}。 |
useZip64 | boolean : 部分ダウンロードに zip64 形式を使用するかどうか。 |
useCache | boolean |
リモートジップ
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64)
パラメーター | |
---|---|
remoteFilePath | String |
fileSize | long |
downloader | IFileDownloader |
useZip64 | boolean |
リモートジップ
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader)
コンストラクタ
パラメーター | |
---|---|
remoteFilePath | String : ダウンロードするファイルへのリモート パス。 |
fileSize | long : リモート ファイルのサイズ。 |
downloader | IFileDownloader : リモート ファイルをダウンロードするために使用される @{link IFileDownloader}。 |
パブリックメソッド
ダウンロードファイル
public void downloadFiles (File destDir,originalFiles)
リモート zip ファイル内の指定されたファイルをダウンロードします。
パラメーター | |
---|---|
destDir | File : ダウンロードしたファイルを配置するディレクトリ。 |
originalFiles |
投げる | |
---|---|
| com.android.tradefed.build.BuildRetrievalError |
| IO例外 |
BuildRetrievalError |
getLastAccess
public long getLastAccess ()
このオブジェクトが最後にアクセスされた時間を取得します。
戻り値 | |
---|---|
long |
getリモートファイルパス
public String getRemoteFilePath ()
リモート zip アーティファクトのリモート ファイル パスを取得します。
戻り値 | |
---|---|
String |
getZipEntries
publicgetZipEntries ()
リモート zip ファイルの zip ファイル エントリを取得します。
戻り値 | |
---|---|
投げる | |
---|---|
BuildRetrievalError | ファイルをダウンロードできなかった場合。 |
setLastAccess
public void setLastAccess (long timestamp)
オブジェクトの最終アクセスのタイムスタンプを更新します。
パラメーター | |
---|---|
timestamp | long |