FileDocCategorySizeDatePackage
DiskManagerFileInfoImpl.javaAPI DocAzureus 3.0.3.43581Mon May 15 03:30:22 BST 2006org.gudy.azureus2.pluginsimpl.local.disk

DiskManagerFileInfoImpl

public class DiskManagerFileInfoImpl extends Object implements org.gudy.azureus2.plugins.disk.DiskManagerFileInfo
author
TuxPaper

Fields Summary
protected org.gudy.azureus2.pluginsimpl.local.download.DownloadImpl
download
protected org.gudy.azureus2.core3.disk.DiskManagerFileInfo
core
Constructors Summary
public DiskManagerFileInfoImpl(org.gudy.azureus2.pluginsimpl.local.download.DownloadImpl _download, org.gudy.azureus2.core3.disk.DiskManagerFileInfo coreFileInfo)

	  core 		= coreFileInfo;
	  download	= _download;
	
Methods Summary
public org.gudy.azureus2.plugins.disk.DiskManagerChannelcreateChannel()

		if ( core.getDownloadManager().getTorrent() == null ){
			
			throw( new DownloadException( "Torrent invalid" ));
		}
		
		return( new DiskManagerChannelImpl( download, this ));
	
public intgetAccessMode()

	  return core.getAccessMode();
	
protected org.gudy.azureus2.core3.disk.DiskManagerFileInfogetCore()

		return( core );
	
public org.gudy.azureus2.plugins.download.DownloadgetDownload()

		return DownloadManagerImpl.getDownloadStatic( core.getDownloadManager());
    
public longgetDownloaded()

	  return core.getDownloaded();
	
public java.io.FilegetFile()

	  return core.getFile(false);
	
public intgetFirstPieceNumber()

	  return core.getFirstPieceNumber();
	
public intgetIndex()

		return( core.getIndex());
	
public longgetLength()

		  return core.getLength();
		
public java.io.FilegetLink()

		return( core.getLink());
	
public intgetNumPieces()

	  return core.getNbPieces();
	
public booleanisDeleted()

		return( core.getStorageType() ==  org.gudy.azureus2.core3.disk.DiskManagerFileInfo.ST_COMPACT );
	
public booleanisPriority()

	  return core.isPriority();
	
public booleanisSkipped()

	  return core.isSkipped();
	
public voidsetDeleted(boolean b)

		if ( b ){
						
			core.setStorageType( org.gudy.azureus2.core3.disk.DiskManagerFileInfo.ST_COMPACT );
			
		}else{
			
			core.setStorageType( org.gudy.azureus2.core3.disk.DiskManagerFileInfo.ST_LINEAR );
		}
	
public voidsetLink(java.io.File link_destination)

		core.setLink( link_destination );
	
public voidsetPriority(boolean b)

	  core.setPriority(b);
	
public voidsetSkipped(boolean b)

	  core.setSkipped(b);