|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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()
|
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()
|
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)
|
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 DiskManagerFileInfo
public int getNumericPriorty()
getNumericPriorty
in interface DiskManagerFileInfo
public int getNumericPriority()
getNumericPriority
in interface DiskManagerFileInfo
public void setNumericPriority(int priority)
DiskManagerFileInfo
setNumericPriority
in interface DiskManagerFileInfo
priority
- Any number or DiskManagerFileInfo.PRIORITY_LOW
, DiskManagerFileInfo.PRIORITY_NORMAL
, DiskManagerFileInfo.PRIORITY_HIGH
public void setSkipped(boolean b)
setSkipped
in interface DiskManagerFileInfo
public void setDeleted(boolean b)
DiskManagerFileInfo
setDeleted
in interface DiskManagerFileInfo
public void setLink(java.io.File link_destination)
setLink
in interface DiskManagerFileInfo
public java.io.File getLink()
getLink
in interface DiskManagerFileInfo
public int getAccessMode()
getAccessMode
in interface DiskManagerFileInfo
public long getDownloaded()
getDownloaded
in interface DiskManagerFileInfo
public long getLength()
DiskManagerFileInfo
getLength
in interface DiskManagerFileInfo
public java.io.File getFile()
getFile
in interface DiskManagerFileInfo
public java.io.File getFile(boolean follow_link)
DiskManagerFileInfo
getFile
in interface DiskManagerFileInfo
public int getIndex()
getIndex
in interface DiskManagerFileInfo
public int getFirstPieceNumber()
getFirstPieceNumber
in interface DiskManagerFileInfo
public long getPieceSize()
getPieceSize
in interface DiskManagerFileInfo
public int getNumPieces()
getNumPieces
in interface DiskManagerFileInfo
public boolean isPriority()
isPriority
in interface DiskManagerFileInfo
public boolean isSkipped()
isSkipped
in interface DiskManagerFileInfo
public boolean isDeleted()
isDeleted
in interface DiskManagerFileInfo
public byte[] getDownloadHash()
getDownloadHash
in interface DiskManagerFileInfo
public Download getDownload() throws DownloadException
getDownload
in interface DiskManagerFileInfo
DownloadException
public DiskManagerChannel createChannel() throws DownloadException
createChannel
in interface DiskManagerFileInfo
DownloadException
public DiskManagerRandomReadRequest createRandomReadRequest(long file_offset, long length, boolean reverse_order, DiskManagerListener listener) throws DownloadException
DiskManagerFileInfo
createRandomReadRequest
in interface DiskManagerFileInfo
reverse_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 |