org.gudy.azureus2.pluginsimpl.local.disk
Class DiskManagerImpl
java.lang.Object
org.gudy.azureus2.pluginsimpl.local.disk.DiskManagerImpl
- All Implemented Interfaces:
- DiskManager
public class DiskManagerImpl
- extends Object
- implements DiskManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiskManagerImpl
public DiskManagerImpl(DiskManager _disk_manager)
getDiskmanager
public DiskManager getDiskmanager()
read
public DiskManagerReadRequest read(int piece_number,
int offset,
int length,
DiskManagerReadRequestListener listener)
throws DiskManagerException
- Specified by:
read
in interface DiskManager
- Throws:
DiskManagerException
write
public DiskManagerWriteRequest write(int piece_number,
int offset,
PooledByteBuffer data,
DiskManagerWriteRequestListener listener)
throws DiskManagerException
- Description copied from interface:
DiskManager
- Data length has to be consistent with block layout of the piece and piece size
- Specified by:
write
in interface DiskManager
- Returns:
-
- Throws:
DiskManagerException