FileDocCategorySizeDatePackage
DiskManagerFileInfo.javaAPI DocAzureus 3.0.3.42902Mon Jul 30 16:07:42 BST 2007org.gudy.azureus2.core3.disk

DiskManagerFileInfo

public interface DiskManagerFileInfo
author
Olivier

Fields Summary
public static final int
READ
public static final int
WRITE
public static final int
ST_LINEAR
public static final int
ST_COMPACT
Constructors Summary
Methods Summary
public voidaddListener(DiskManagerFileInfoListener listener)

public voidclose()

public voidflushCache()

public intgetAccessMode()

public org.gudy.azureus2.core3.disk.DiskManagergetDiskManager()

public org.gudy.azureus2.core3.download.DownloadManagergetDownloadManager()

public longgetDownloaded()

public java.lang.StringgetExtension()

public java.io.FilegetFile(boolean follow_link)

public intgetFirstPieceNumber()

public intgetIndex()

public intgetLastPieceNumber()

public longgetLength()

public java.io.FilegetLink()

public intgetNbPieces()

public intgetStorageType()

public org.gudy.azureus2.core3.torrent.TOTorrentFilegetTorrentFile()

public booleanisPriority()

public booleanisSkipped()

public org.gudy.azureus2.core3.util.DirectByteBufferread(long offset, int length)

public voidremoveListener(DiskManagerFileInfoListener listener)

public booleansetLink(java.io.File link_destination)
Relink the file to the destination given - this method deals with if the file is part of a simple torrent or not (so it may set the download name to keep it in sync). If you just want a simple relink, use setLinkAtomic.

param
link_destination
return

public booleansetLinkAtomic(java.io.File link_destination)

public voidsetPriority(boolean b)

public voidsetSkipped(boolean b)

public booleansetStorageType(int type)
Download must be stopped before calling this!

param
type one of ST_LINEAR or ST_COMPACT