* @throws InterruptedException throws is the thread is interrupted.
*/
public UpsertResult upsertStream(String resourceId, MediaType mediaType, InputStream stream) throws SodaError, InterruptedException
{
SodaRequest requester = new SodaTypedRequest<InputStream>(resourceId, stream, mediaType)
{
public ClientResponse issueRequest() throws LongRunningQueryException, SodaError
{ return doAddStream(resourceId, mediaType, payload); }
};
try {
ClientResponse response = requester.issueRequest();
return deserializeUpsertResult(response.getEntityInputStream());
} catch (LongRunningQueryException e) {
return getHttpLowLevel().getAsyncResults(e.location, mediaType, e.timeToRetry, getHttpLowLevel().getMaxRetries(), new GenericType<UpsertResult>(InputStream.class), requester);
} catch (IOException ioe) {