public interface IOnenoteResourceStreamRequest extends IHttpStreamRequest
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
|
OnenoteResource |
put(byte[] fileContents)
Uploads to the stream
|
void |
put(byte[] fileContents,
ICallback<OnenoteResource> callback)
Uploads to the stream
|
addHeader, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches
void get(ICallback<java.io.InputStream> callback)
callback
- the callback to be called after success or failurejava.io.InputStream get() throws ClientException
ClientException
- an exception occurs if there was an error while the request was sentvoid put(byte[] fileContents, ICallback<OnenoteResource> callback)
fileContents
- the contents of the stream to uploadcallback
- the callback to be called after success or failureOnenoteResource put(byte[] fileContents) throws ClientException
fileContents
- the contents of the stream to uploadClientException
- an exception occurs if there was an error while the request was sent