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

Example usage for Java com.google.api.client.googleapis.media MediaHttpUploader 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 MediaHttpUploader.

The text is from its open source code.

Field

StringCONTENT_TYPE_HEADER
Upload content length header.
intMINIMUM_CHUNK_SIZE
Minimum number of bytes that can be uploaded to the server (set to 256KB).
intDEFAULT_CHUNK_SIZE
Default maximum number of bytes that will be uploaded to the server in any single HTTP request (set to 10 MB).

Method

longgetNumBytesUploaded()
Gets the total number of bytes the server received so far or 0 for direct uploads when the content length is not known.
doublegetProgress()
Gets the upload progress denoting the percentage of bytes that have been uploaded, represented between 0.0 (0%) and 1.0 (100%).
UploadStategetUploadState()
Gets the current upload state of the uploader.
MediaHttpUploadersetChunkSize(int chunkSize)
Sets the maximum size of individual chunks that will get uploaded by single HTTP requests.
MediaHttpUploadersetDirectUploadEnabled(boolean directUploadEnabled)
Sets whether direct media upload is enabled or disabled.
MediaHttpUploadersetProgressListener(MediaHttpUploaderProgressListener progressListener)
Sets the progress listener to send progress notifications to or null for none.