Package com.biglybt.pif.disk
Interface DiskManagerFileInfo
- All Known Implementing Classes:
DiskManagerFileInfoDelegate
,DiskManagerFileInfoFile
,DiskManagerFileInfoImpl
,DiskManagerFileInfoStream
,DiskManagerFileInfoURL
,RPDiskManagerFileInfo
,TranscodeJobOutputLeecher
public interface DiskManagerFileInfo
- Since:
- 2.1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptioncreateRandomReadRequest
(long file_offset, long length, boolean reverse_order, DiskManagerListener listener) Creates a random read request - these will be executed against the download sequentiallyint
long
byte[]
getFile()
getFile
(boolean follow_link) returns liked file if it exists, direct otherwiseint
int
getIndex()
long
long
Size when file is completegetLink()
int
int
long
boolean
boolean
boolean
void
setDeleted
(boolean b) Mark the file as deleted or not (deleted means the file will be truncated to take up minimum space).default void
Deprecated.remove when xmwebui plugin no longer uses it (post 3101)void
void
setNumericPriority
(int priority) Sets the file's download priority base on a numbervoid
setPriority
(boolean b) void
setSkipped
(boolean b)
-
Field Details
-
READ
static final int READ- See Also:
-
WRITE
static final int WRITE- See Also:
-
PRIORITY_LOW
static final int PRIORITY_LOW- See Also:
-
PRIORITY_NORMAL
static final int PRIORITY_NORMAL- See Also:
-
PRIORITY_HIGH
static final int PRIORITY_HIGH- See Also:
-
-
Method Details
-
setPriority
void setPriority(boolean b) -
setNumericPriority
void setNumericPriority(int priority) Sets the file's download priority base on a number- Parameters:
priority
- Any number orPRIORITY_LOW
,PRIORITY_NORMAL
,PRIORITY_HIGH
- Since:
- 4407
-
setSkipped
void setSkipped(boolean b) -
isSkipping
Boolean isSkipping() -
setDeleted
void setDeleted(boolean b) Mark the file as deleted or not (deleted means the file will be truncated to take up minimum space). This is generally 0 invalid input: '<'= X invalid input: '<' 2*piece_length as pieces can span file boundaries.- Parameters:
b
-- Since:
- 2403
-
setLink
Deprecated.remove when xmwebui plugin no longer uses it (post 3101)- Parameters:
link_destination
-
-
setLink
-
getLink
File getLink() -
getAccessMode
int getAccessMode() -
getDownloaded
long getDownloaded() -
getLastModified
long getLastModified() -
getLength
long getLength()Size when file is complete -
getFile
File getFile() -
getFile
returns liked file if it exists, direct otherwise- Parameters:
follow_link
-- Returns:
- Since:
- 4.3.1.5
-
getIndex
int getIndex() -
getFirstPieceNumber
int getFirstPieceNumber() -
getPieceSize
long getPieceSize() -
getNumPieces
int getNumPieces() -
isPriority
boolean isPriority() -
getNumericPriority
int getNumericPriority()- Returns:
- Since:
- 4.8.1.3
-
isSkipped
boolean isSkipped() -
isDeleted
boolean isDeleted() -
getDownloadHash
- Throws:
DownloadException
-
getDownload
- Throws:
DownloadException
-
createChannel
- Throws:
DownloadException
-
createRandomReadRequest
DiskManagerRandomReadRequest createRandomReadRequest(long file_offset, long length, boolean reverse_order, DiskManagerListener listener) throws DownloadException Creates a random read request - these will be executed against the download sequentially- Parameters:
file_offset
-length
-reverse_order
- - deliver blocks to the listener in reverse orderlistener
-- Returns:
- Throws:
DownloadException
-