use of com.biglybt.pifimpl.remote.download.RPDownload in project BiglyBT by BiglySoftware.
the class RPShortCuts method getDownload.
// ***************************************************
@Override
public Download getDownload(byte[] hash) throws DownloadException {
try {
RPDownload res = (RPDownload) _dispatcher.dispatch(new RPRequest(this, "getDownload[byte[]]", new Object[] { hash })).getResponse();
res._setRemote(_dispatcher);
return (res);
} catch (RPException e) {
if (e.getCause() instanceof DownloadException) {
throw ((DownloadException) e.getCause());
}
throw (e);
}
}
Aggregations