Package com.biglybt.pif.disk
Interface DiskManagerRequest
- All Known Implementing Classes:
DiskManagerChannelImpl.request
,DiskManagerFileInfoDelegate.channel.request
,DiskManagerFileInfoFile.channel.request
,DiskManagerFileInfoStream.context.channel.request
,DiskManagerFileInfoURL.channel.request
,TranscodeJobOutputLeecher.Channel.request
public interface DiskManagerRequest
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(DiskManagerListener listener) void
cancel()
long
Get the number of bytes available for immediate reading from the request given its current position.long
Get the number of bytes remaining to be read for the requestvoid
removeListener
(DiskManagerListener listener) void
run()
void
setLength
(long length) void
setMaximumReadChunkSize
(int size) void
setOffset
(long offset) void
setType
(int type) void
setUserAgent
(String agent) Beware that invoking this method signifies that the media is being streamed and therefore may undergo transformations such as MOOV atom relocation in mp4s
-
Field Details
-
REQUEST_READ
static final int REQUEST_READ- See Also:
-
-
Method Details
-
setType
void setType(int type) -
setOffset
void setOffset(long offset) -
setLength
void setLength(long length) -
getAvailableBytes
long getAvailableBytes()Get the number of bytes available for immediate reading from the request given its current position. If this information is not known (download not running) then -1 is returned- Returns:
-
getRemaining
long getRemaining()Get the number of bytes remaining to be read for the request- Returns:
-
run
void run() -
cancel
void cancel() -
setUserAgent
Beware that invoking this method signifies that the media is being streamed and therefore may undergo transformations such as MOOV atom relocation in mp4s- Parameters:
agent
-
-
setMaximumReadChunkSize
void setMaximumReadChunkSize(int size) -
addListener
-
removeListener
-