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 Modifier and Type Field Description static int
REQUEST_READ
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(DiskManagerListener listener)
void
cancel()
long
getAvailableBytes()
Get the number of bytes available for immediate reading from the request given its current position.long
getRemaining()
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(java.lang.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 Detail
-
REQUEST_READ
static final int REQUEST_READ
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
void setUserAgent(java.lang.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- Parameters:
agent
-
-
setMaximumReadChunkSize
void setMaximumReadChunkSize(int size)
-
addListener
void addListener(DiskManagerListener listener)
-
removeListener
void removeListener(DiskManagerListener listener)
-
-