| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aelitis.azureus.core.download.DiskManagerFileInfoDelegate
public class DiskManagerFileInfoDelegate
| Field Summary | 
|---|
| Fields inherited from interface org.gudy.azureus2.plugins.disk.DiskManagerFileInfo | 
|---|
PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL, READ, WRITE | 
| Constructor Summary | |
|---|---|
DiskManagerFileInfoDelegate(DiskManagerFileInfo _delegate)
 | 
|
| Method Summary | |
|---|---|
 DiskManagerChannel | 
createChannel()
 | 
 DiskManagerRandomReadRequest | 
createRandomReadRequest(long file_offset,
                        long length,
                        boolean reverse_order,
                        DiskManagerListener listener)
Creates a random read request - these will be executed against the download sequentially  | 
 int | 
getAccessMode()
 | 
 Download | 
getDownload()
 | 
 long | 
getDownloaded()
 | 
 byte[] | 
getDownloadHash()
 | 
 File | 
getFile()
 | 
 File | 
getFile(boolean follow_link)
returns liked file if it exists, direct otherwise  | 
 int | 
getFirstPieceNumber()
 | 
 int | 
getIndex()
 | 
 long | 
getLength()
Size when file is complete  | 
 File | 
getLink()
 | 
 int | 
getNumericPriority()
 | 
 int | 
getNumericPriorty()
 | 
 int | 
getNumPieces()
 | 
 long | 
getPieceSize()
 | 
 boolean | 
isDeleted()
 | 
 boolean | 
isPriority()
 | 
 boolean | 
isSkipped()
 | 
 void | 
setDeleted(boolean b)
Mark the file as deleted or not (deleted means the file will be truncated to take up minimum space).  | 
 void | 
setLink(File link_destination)
 | 
 void | 
setNumericPriority(int priority)
Sets the file's download priority base on a number  | 
 void | 
setPriority(boolean b)
 | 
 void | 
setSkipped(boolean b)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DiskManagerFileInfoDelegate(DiskManagerFileInfo _delegate)
                            throws DownloadException
DownloadException| Method Detail | 
|---|
public void setPriority(boolean b)
setPriority in interface DiskManagerFileInfopublic int getNumericPriorty()
getNumericPriorty in interface DiskManagerFileInfopublic int getNumericPriority()
getNumericPriority in interface DiskManagerFileInfopublic void setNumericPriority(int priority)
DiskManagerFileInfo
setNumericPriority in interface DiskManagerFileInfopriority - Any number or DiskManagerFileInfo.PRIORITY_LOW, DiskManagerFileInfo.PRIORITY_NORMAL, DiskManagerFileInfo.PRIORITY_HIGHpublic void setSkipped(boolean b)
setSkipped in interface DiskManagerFileInfopublic void setDeleted(boolean b)
DiskManagerFileInfo
setDeleted in interface DiskManagerFileInfopublic void setLink(File link_destination)
setLink in interface DiskManagerFileInfopublic File getLink()
getLink in interface DiskManagerFileInfopublic int getAccessMode()
getAccessMode in interface DiskManagerFileInfopublic long getDownloaded()
getDownloaded in interface DiskManagerFileInfopublic long getLength()
DiskManagerFileInfo
getLength in interface DiskManagerFileInfopublic File getFile()
getFile in interface DiskManagerFileInfopublic File getFile(boolean follow_link)
DiskManagerFileInfo
getFile in interface DiskManagerFileInfopublic int getIndex()
getIndex in interface DiskManagerFileInfopublic int getFirstPieceNumber()
getFirstPieceNumber in interface DiskManagerFileInfopublic long getPieceSize()
getPieceSize in interface DiskManagerFileInfopublic int getNumPieces()
getNumPieces in interface DiskManagerFileInfopublic boolean isPriority()
isPriority in interface DiskManagerFileInfopublic boolean isSkipped()
isSkipped in interface DiskManagerFileInfopublic boolean isDeleted()
isDeleted in interface DiskManagerFileInfopublic byte[] getDownloadHash()
getDownloadHash in interface DiskManagerFileInfo
public Download getDownload()
                     throws DownloadException
getDownload in interface DiskManagerFileInfoDownloadException
public DiskManagerChannel createChannel()
                                 throws DownloadException
createChannel in interface DiskManagerFileInfoDownloadException
public DiskManagerRandomReadRequest createRandomReadRequest(long file_offset,
                                                            long length,
                                                            boolean reverse_order,
                                                            DiskManagerListener listener)
                                                     throws DownloadException
DiskManagerFileInfo
createRandomReadRequest in interface DiskManagerFileInforeverse_order - - deliver blocks to the listener in reverse order
DownloadException
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||