org.gudy.azureus2.plugins.disk
Interface DiskManagerRequest
- All Known Implementing Classes: 
 - DiskManagerChannelImpl.request, DiskManagerFileInfoFile.channel.request, DiskManagerFileInfoStream.context.channel.request, DiskManagerFileInfoURL.channel.request, TranscodeJobOutputLeecher.Channel.request
 
public interface DiskManagerRequest
 
 
REQUEST_READ
static final int REQUEST_READ
- See Also:
 - Constant Field Values
 
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(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)