to top
public interface

IFileDownloader

com.android.tradefed.build.IFileDownloader
Known Indirect Subclasses

Class Overview

Interface for downloading a remote file.

Summary

Public Methods
abstract void downloadFile(String relativeRemotePath, File destFile)
Alternate form of downloadFile(String), that allows caller to specify the destination file the remote contents should be placed in.
abstract File downloadFile(String remoteFilePath)
Downloads a remote file to a temporary file on local disk.

Public Methods

public abstract void downloadFile (String relativeRemotePath, File destFile)

Alternate form of downloadFile(String), that allows caller to specify the destination file the remote contents should be placed in.

Parameters
relativeRemotePath String: the remote path to the file to download, relative to an implementation-specific root.
destFile File: the file to place the downloaded contents into. Should not exist.
Throws
BuildRetrievalError if file could not be downloaded

public abstract File downloadFile (String remoteFilePath)

Downloads a remote file to a temporary file on local disk.

Parameters
remoteFilePath String: the remote path to the file to download, relative to a implementation specific root.
Returns
File the temporary local downloaded File.
Throws
BuildRetrievalError if file could not be downloaded