public BoxRequestsFile . DownloadFile getDownloadUrlRequest ( File target , String url ) throws IOException { if ( ! target . exists ( ) ) { throw new FileNotFoundException ( ) ; } BoxRequestsFile . DownloadFile request = new BoxRequestsFile . DownloadFile ( target , url , mSession ) ; return request ; }
Gets a request that downloads a given asset from the url to a target file This is used to download miscellaneous url assets for instance from the representations endpoint .