public interface IProfilePhotoStreamRequest 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
|
ProfilePhoto |
put(byte[] fileContents)
Uploads to the stream
|
void |
put(byte[] fileContents,
ICallback<? super ProfilePhoto> callback)
Uploads to the stream
|
addHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodvoid 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<? super ProfilePhoto> callback)
fileContents - the contents of the stream to uploadcallback - the callback to be called after success or failureProfilePhoto 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