* @throws AuthFatalFailureException
* exception indicating authentication totally failed
*/
public InputStream execute(final IBoxRequestAuth auth, IBoxJSONParser parser, BoxDefaultRequestObject requestObject) throws BoxRestException,
BoxServerException, AuthFatalFailureException {
DownloadFileRequest request;
if (isPartialDownload(requestObject)) {
request = new DownloadPartialFileRequest(mConfig, parser, mFileId, requestObject);
} else {
request = new DownloadFileRequest(mConfig, parser, mFileId, requestObject);
}
request.setAuth(auth);
DefaultBoxResponse response = (DefaultBoxResponse) mRestClient.execute(request);
DefaultFileResponseParser responseParser = new DefaultFileResponseParser();
ErrorResponseParser errorParser = new ErrorResponseParser(parser);
Object result = response.parseResponse(responseParser, errorParser);
if (result instanceof BoxServerError) {