public interface

IFileDownloader

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

Class Overview

Interface for downloading a remote file.

Summary

Public Methods
abstract File downloadFile(String remoteFilePath)
Downloads a remote file to a temporary file on local disk.
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.

Public Methods

public abstract File downloadFile (String remoteFilePath)

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

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

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 the remote path to the file to download, relative to an implementation-specific root.
destFile the file to place the downloaded contents into. Should not exist.
Throws
BuildRetrievalError if file could not be downloaded