com.aelitis.azureus.core.diskmanager.file.impl
Interface FMFileAccess
- All Known Implementing Classes:
- FMFileAccessCompact, FMFileAccessController, FMFileAccessLinear, FMFileAccessPieceReorderer
public interface FMFileAccess
aboutToOpen
void aboutToOpen()
throws FMFileManagerException
- Throws:
FMFileManagerException
getLength
long getLength(RandomAccessFile raf)
throws FMFileManagerException
- Throws:
FMFileManagerException
setLength
void setLength(RandomAccessFile raf,
long length)
throws FMFileManagerException
- Throws:
FMFileManagerException
read
void read(RandomAccessFile raf,
DirectByteBuffer[] buffers,
long offset)
throws FMFileManagerException
- Throws:
FMFileManagerException
write
void write(RandomAccessFile raf,
DirectByteBuffer[] buffers,
long position)
throws FMFileManagerException
- Throws:
FMFileManagerException
flush
void flush()
throws FMFileManagerException
- Throws:
FMFileManagerException
isPieceCompleteProcessingNeeded
boolean isPieceCompleteProcessingNeeded(int piece_number)
setPieceComplete
void setPieceComplete(RandomAccessFile raf,
int piece_number,
DirectByteBuffer piece_data)
throws FMFileManagerException
- Throws:
FMFileManagerException
getFile
FMFileImpl getFile()
getString
String getString()