public class BaseItemStreamRequest extends BaseStreamRequest<Item> implements IBaseItemStreamRequest
| Constructor and Description |
|---|
BaseItemStreamRequest(java.lang.String requestUrl,
IOneDriveClient client,
java.util.List<Option> options)
The request for this ItemStream
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
get() |
void |
get(ICallback<java.io.InputStream> callback) |
Item |
put(byte[] fileContents) |
void |
put(byte[] fileContents,
ICallback<Item> callback) |
addHeader, getHeaders, getHttpMethod, getOptions, getRequestUrl, send, send, send, sendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getHeaders, getHttpMethod, getOptions, getRequestUrlpublic BaseItemStreamRequest(java.lang.String requestUrl,
IOneDriveClient client,
java.util.List<Option> options)
requestUrl - The request urlclient - The service clientoptions - The options for this requestpublic void get(ICallback<java.io.InputStream> callback)
get in interface IBaseItemStreamRequestpublic java.io.InputStream get()
throws ClientException
get in interface IBaseItemStreamRequestClientExceptionpublic void put(byte[] fileContents,
ICallback<Item> callback)
put in interface IBaseItemStreamRequestpublic Item put(byte[] fileContents) throws ClientException
put in interface IBaseItemStreamRequestClientException