org.gudy.azureus2.pluginsimpl.local.disk
Class DiskManagerChannelImpl.request
java.lang.Object
   org.gudy.azureus2.pluginsimpl.local.disk.DiskManagerChannelImpl.request
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
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DiskManagerChannelImpl.request
protected DiskManagerChannelImpl.request()
setType
public void setType(int _type)
- 
- Specified by:
- setTypein interface- DiskManagerRequest
 
- 
 
setOffset
public void setOffset(long _offset)
- 
- Specified by:
- setOffsetin interface- DiskManagerRequest
 
- 
 
setLength
public void setLength(long _length)
- 
- Specified by:
- setLengthin interface- DiskManagerRequest
 
- 
 
setMaximumReadChunkSize
public void setMaximumReadChunkSize(int size)
- 
- Specified by:
- setMaximumReadChunkSizein 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:
- getRemainingin 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:
- setUserAgentin 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:
- getAvailableBytesin interface- DiskManagerRequest
 
- 
- Returns:
 
run
public void run()
- 
- Specified by:
- runin interface- DiskManagerRequest
 
- 
 
cancel
public void cancel()
- 
- Specified by:
- cancelin 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:
- addListenerin interface- DiskManagerRequest
 
- 
 
removeListener
public void removeListener(DiskManagerListener listener)
- 
- Specified by:
- removeListenerin interface- DiskManagerRequest
 
-