FileDocCategorySizeDatePackage
ShortCutsImpl.javaAPI DocAzureus 3.0.3.42159Thu Feb 09 19:42:50 GMT 2006org.gudy.azureus2.pluginsimpl.local.utils

ShortCutsImpl

public class ShortCutsImpl extends Object implements ShortCuts
author
parg

Fields Summary
protected PluginInterface
pi
Constructors Summary
public ShortCutsImpl(PluginInterface _pi)

		pi		= _pi;
	
Methods Summary
public DownloadgetDownload(byte[] hash)

		Download	dl = ((DownloadManagerImpl)pi.getDownloadManager()).getDownload( hash );
		
		if ( dl == null ){
			
			throw( new DownloadException("Torrent not found" ));
		}
		
		return( dl );
	
public DownloadStatsgetDownloadStats(byte[] hash)

		return( getDownload(hash).getStats());
	
public voidremoveDownload(byte[] hash)

		getDownload(hash).remove();
	
public voidrestartDownload(byte[] hash)

		getDownload(hash).restart();
	
public voidstopDownload(byte[] hash)

		getDownload(hash).stop();