Search in sources :

Example 1 with RPDownload

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);
    }
}
Also used : DownloadException(com.biglybt.pif.download.DownloadException) RPDownload(com.biglybt.pifimpl.remote.download.RPDownload)

Aggregations

DownloadException (com.biglybt.pif.download.DownloadException)1 RPDownload (com.biglybt.pifimpl.remote.download.RPDownload)1