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


Field Summary
static int REQUEST_READ
           
 
Method Summary
 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 request
 void 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)