Modifier and Type | Method and Description |
---|---|
OneUploadFile |
cancelUpload()
Will cancel the upload completely.
|
long |
fileSize()
Gets the size of the file that is uploaded (convenience method for simple completion Percent calculation)
|
java.io.File |
getUploadFile()
Gets the file handle of the file that is being uploaded
|
OneUploadFile |
pauseUpload()
Will pause the upload.
|
OneUploadFile |
resumeUpload()
Will resume the upload if it got paused/interrupted.
|
OneFile |
startUpload()
Starts the upload, needs to be called to start the upload.
|
long |
uploadStatus()
Gets something like an enum indication that the upload is either finished,running,paused,canceled...
|
long fileSize()
long uploadStatus() throws java.io.IOException, OneDriveException
java.io.IOException
OneDriveException
OneFile startUpload() throws java.io.IOException, OneDriveException
java.io.IOException
OneDriveException
OneUploadFile pauseUpload()
OneUploadFile resumeUpload()
OneUploadFile cancelUpload() throws java.io.IOException, OneDriveAuthenticationException
java.io.IOException
OneDriveAuthenticationException
java.io.File getUploadFile()