Example usage for Java com.google.api.client.googleapis.media MediaHttpDownloader fields, constructors, methods, implement or subclass
The text is from its open source code.
MediaHttpDownloader(HttpTransport transport, HttpRequestInitializer httpRequestInitializer) Construct the MediaHttpDownloader . |
void | download(GenericUrl requestUrl, OutputStream outputStream) Executes a direct media download or a resumable media download. |
DownloadState | getDownloadState() Gets the current download state of the downloader. |
long | getNumBytesDownloaded() Gets the total number of bytes downloaded by this downloader. |
double | getProgress() Gets the download progress denoting the percentage of bytes that have been downloaded, represented between 0.0 (0%) and 1.0 (100%). |
MediaHttpDownloader | setChunkSize(int chunkSize) Sets the maximum size of individual chunks that will get downloaded by single HTTP requests. |
MediaHttpDownloader | setContentRange(long firstBytePos, long lastBytePos) Sets the content range of the next download request. |
MediaHttpDownloader | setContentRange(long firstBytePos, int lastBytePos) |
MediaHttpDownloader | setDirectDownloadEnabled(boolean directDownloadEnabled) Returns whether direct media download is enabled or disabled. |
MediaHttpDownloader | setProgressListener(MediaHttpDownloaderProgressListener progressListener) Sets the progress listener to send progress notifications to or null for none. |