Java com.google.api.client.googleapis.media MediaHttpDownloader fields, constructors, methods, implement or subclass

Example usage for Java com.google.api.client.googleapis.media MediaHttpDownloader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.api.client.googleapis.media MediaHttpDownloader.

The text is from its open source code.

Constructor

Method

voiddownload(GenericUrl requestUrl, OutputStream outputStream)
Executes a direct media download or a resumable media download.
DownloadStategetDownloadState()
Gets the current download state of the downloader.
longgetNumBytesDownloaded()
Gets the total number of bytes downloaded by this downloader.
doublegetProgress()
Gets the download progress denoting the percentage of bytes that have been downloaded, represented between 0.0 (0%) and 1.0 (100%).
MediaHttpDownloadersetChunkSize(int chunkSize)
Sets the maximum size of individual chunks that will get downloaded by single HTTP requests.
MediaHttpDownloadersetContentRange(long firstBytePos, long lastBytePos)
Sets the content range of the next download request.
MediaHttpDownloadersetContentRange(long firstBytePos, int lastBytePos)
MediaHttpDownloadersetDirectDownloadEnabled(boolean directDownloadEnabled)
Returns whether direct media download is enabled or disabled.
MediaHttpDownloadersetProgressListener(MediaHttpDownloaderProgressListener progressListener)
Sets the progress listener to send progress notifications to or null for none.