public class DriveItemVersionContentStreamRequest extends BaseStreamRequest<DriveItemVersion> implements IDriveItemVersionContentStreamRequest
| Constructor and Description |
|---|
DriveItemVersionContentStreamRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the DriveItemVersionContentStream
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
get()
Gets the contents of this stream
|
void |
get(ICallback<java.io.InputStream> callback)
Gets the contents of this stream
|
DriveItemVersion |
put(byte[] fileContents)
Uploads to the stream
|
void |
put(byte[] fileContents,
ICallback<? super DriveItemVersion> callback)
Uploads to the stream
|
addHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, send, send, send, send, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic DriveItemVersionContentStreamRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestpublic void get(ICallback<java.io.InputStream> callback)
get in interface IDriveItemVersionContentStreamRequestcallback - the callback to be called after success or failurepublic java.io.InputStream get()
throws ClientException
get in interface IDriveItemVersionContentStreamRequestClientException - an exception occurs if there was an error while the request was sentpublic void put(byte[] fileContents,
ICallback<? super DriveItemVersion> callback)
put in interface IDriveItemVersionContentStreamRequestfileContents - the contents of the stream to uploadcallback - the callback to be called after success or failurepublic DriveItemVersion put(byte[] fileContents) throws ClientException
put in interface IDriveItemVersionContentStreamRequestfileContents - the contents of the stream to uploadClientException - an exception occurs if there was an error while the request was sent