| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DiskManagerFileInfo
| Field Summary | |
|---|---|
static int | 
PRIORITY_HIGH
 | 
static int | 
PRIORITY_LOW
 | 
static int | 
PRIORITY_NORMAL
 | 
static int | 
READ
 | 
static int | 
WRITE
 | 
| 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()
 | 
 java.io.File | 
getFile()
 | 
 java.io.File | 
getFile(boolean follow_link)
returns liked file if it exists, direct otherwise  | 
 int | 
getFirstPieceNumber()
 | 
 int | 
getIndex()
 | 
 long | 
getLength()
Size when file is complete  | 
 java.io.File | 
getLink()
 | 
 int | 
getNumericPriority()
 | 
 int | 
getNumericPriorty()
Deprecated.  | 
 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(java.io.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)
 | 
| Field Detail | 
|---|
static final int READ
static final int WRITE
static final int PRIORITY_LOW
static final int PRIORITY_NORMAL
static final int PRIORITY_HIGH
| Method Detail | 
|---|
void setPriority(boolean b)
void setNumericPriority(int priority)
priority - Any number or PRIORITY_LOW, PRIORITY_NORMAL, PRIORITY_HIGHvoid setSkipped(boolean b)
void setDeleted(boolean b)
b - void setLink(java.io.File link_destination)
java.io.File getLink()
int getAccessMode()
long getDownloaded()
long getLength()
java.io.File getFile()
java.io.File getFile(boolean follow_link)
follow_link - 
int getIndex()
int getFirstPieceNumber()
long getPieceSize()
int getNumPieces()
boolean isPriority()
int getNumericPriorty()
int getNumericPriority()
boolean isSkipped()
boolean isDeleted()
byte[] getDownloadHash()
                       throws DownloadException
DownloadException
Download getDownload()
                     throws DownloadException
DownloadException
DiskManagerChannel createChannel()
                                 throws DownloadException
DownloadException
DiskManagerRandomReadRequest createRandomReadRequest(long file_offset,
                                                     long length,
                                                     boolean reverse_order,
                                                     DiskManagerListener listener)
                                                     throws DownloadException
file_offset - length - reverse_order - - deliver blocks to the listener in reverse orderlistener - 
DownloadException
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||