com.aelitis.azureus.core.diskmanager.file.impl
Interface FMFileAccess

All Known Implementing Classes:
FMFileAccessCompact, FMFileAccessController, FMFileAccessLinear, FMFileAccessPieceReorderer

public interface FMFileAccess


Method Summary
 void aboutToOpen()
           
 void flush()
           
 FMFileImpl getFile()
           
 long getLength(RandomAccessFile raf)
           
 String getString()
           
 boolean isPieceCompleteProcessingNeeded(int piece_number)
           
 void read(RandomAccessFile raf, DirectByteBuffer[] buffers, long offset)
           
 void setLength(RandomAccessFile raf, long length)
           
 void setPieceComplete(RandomAccessFile raf, int piece_number, DirectByteBuffer piece_data)
           
 void write(RandomAccessFile raf, DirectByteBuffer[] buffers, long position)
           
 

Method Detail

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()