org.gudy.azureus2.pluginsimpl.local.disk
Class DiskManagerChannelImpl.request

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.disk.DiskManagerChannelImpl.request
All Implemented Interfaces:
DiskManagerRequest
Enclosing class:
DiskManagerChannelImpl

protected class DiskManagerChannelImpl.request
extends java.lang.Object
implements DiskManagerRequest


Nested Class Summary
protected  class DiskManagerChannelImpl.request.event
           
 
Field Summary
 
Fields inherited from interface org.gudy.azureus2.plugins.disk.DiskManagerRequest
REQUEST_READ
 
Constructor Summary
protected DiskManagerChannelImpl.request()
           
 
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
protected  java.lang.String getUserAgent()
           
protected  void inform(DiskManagerChannelImpl.request.event ev)
           
protected  void inform(java.lang.Throwable e)
           
 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 str)
          Beware that invoking this method signifies that the media is being streamed and therefore may undergo transformations such as MOOV atom relocation in mp4s
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiskManagerChannelImpl.request

protected DiskManagerChannelImpl.request()
Method Detail

setType

public void setType(int _type)
Specified by:
setType in interface DiskManagerRequest

setOffset

public void setOffset(long _offset)
Specified by:
setOffset in interface DiskManagerRequest

setLength

public void setLength(long _length)
Specified by:
setLength in interface DiskManagerRequest

setMaximumReadChunkSize

public void setMaximumReadChunkSize(int size)
Specified by:
setMaximumReadChunkSize in interface DiskManagerRequest

getRemaining

public long getRemaining()
Description copied from interface: DiskManagerRequest
Get the number of bytes remaining to be read for the request

Specified by:
getRemaining in interface DiskManagerRequest
Returns:

setUserAgent

public void setUserAgent(java.lang.String str)
Description copied from interface: DiskManagerRequest
Beware that invoking this method signifies that the media is being streamed and therefore may undergo transformations such as MOOV atom relocation in mp4s

Specified by:
setUserAgent in interface DiskManagerRequest

getUserAgent

protected java.lang.String getUserAgent()

getAvailableBytes

public long getAvailableBytes()
Description copied from interface: DiskManagerRequest
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

Specified by:
getAvailableBytes in interface DiskManagerRequest
Returns:

run

public void run()
Specified by:
run in interface DiskManagerRequest

cancel

public void cancel()
Specified by:
cancel in interface DiskManagerRequest

inform

protected void inform(java.lang.Throwable e)

inform

protected void inform(DiskManagerChannelImpl.request.event ev)

addListener

public void addListener(DiskManagerListener listener)
Specified by:
addListener in interface DiskManagerRequest

removeListener

public void removeListener(DiskManagerListener listener)
Specified by:
removeListener in interface DiskManagerRequest