public class OnenotePageStreamRequest extends BaseStreamRequest<OnenotePage> implements IOnenotePageStreamRequest
Constructor and Description |
---|
OnenotePageStreamRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the OnenotePageStream
|
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
|
OnenotePage |
put(byte[] fileContents)
Uploads to the stream
|
void |
put(byte[] fileContents,
ICallback<OnenotePage> callback)
Uploads to the stream
|
addHeader, getHeaders, getHttpMethod, getOptions, getRequestUrl, getUseCaches, send, send, send, send, setUseCaches
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHeader, getHeaders, getHttpMethod, getOptions, getRequestUrl, getUseCaches, setUseCaches
public OnenotePageStreamRequest(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 IOnenotePageStreamRequest
callback
- the callback to be called after success or failurepublic java.io.InputStream get() throws ClientException
get
in interface IOnenotePageStreamRequest
ClientException
- an exception occurs if there was an error while the request was sentpublic void put(byte[] fileContents, ICallback<OnenotePage> callback)
put
in interface IOnenotePageStreamRequest
fileContents
- the contents of the stream to uploadcallback
- the callback to be called after success or failurepublic OnenotePage put(byte[] fileContents) throws ClientException
put
in interface IOnenotePageStreamRequest
fileContents
- the contents of the stream to uploadClientException
- an exception occurs if there was an error while the request was sent