Package com.dropbox.core.v2.files
Class UploadSessionCursor
java.lang.Object
com.dropbox.core.v2.files.UploadSessionCursor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongOffset in bytes at which data should be appended.The upload session ID (returned byDbxUserFilesRequests.uploadSessionStart(com.dropbox.core.v2.files.UploadSessionStartArg)).inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
sessionId
-
offset
protected final long offset
-
-
Constructor Details
-
UploadSessionCursor
- Parameters:
sessionId- The upload session ID (returned byDbxUserFilesRequests.uploadSessionStart(com.dropbox.core.v2.files.UploadSessionStartArg)). Must not benull.offset- Offset in bytes at which data should be appended. We use this to make sure upload data isn't lost or duplicated in the event of a network error.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getSessionId
The upload session ID (returned byDbxUserFilesRequests.uploadSessionStart(com.dropbox.core.v2.files.UploadSessionStartArg)).- Returns:
- value for this field, never
null.
-
getOffset
public long getOffset()Offset in bytes at which data should be appended. We use this to make sure upload data isn't lost or duplicated in the event of a network error.- Returns:
- value for this field.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-