Interface FMFileAccess
-
- All Known Implementing Classes:
FMFileAccessCompact
,FMFileAccessController
,FMFileAccessLinear
,FMFileAccessPieceReorderer
public interface FMFileAccess
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
FMFileAccess.FileAccessor
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
aboutToOpen()
void
flush()
FMFileImpl
getFile()
long
getLength(FMFileAccess.FileAccessor fa)
java.lang.String
getString()
boolean
isPieceCompleteProcessingNeeded(int piece_number)
void
read(FMFileAccess.FileAccessor fa, DirectByteBuffer[] buffers, long offset)
void
setLength(FMFileAccess.FileAccessor fa, long length)
void
setPieceComplete(FMFileAccess.FileAccessor fa, int piece_number, DirectByteBuffer piece_data)
void
write(FMFileAccess.FileAccessor fa, DirectByteBuffer[] buffers, long position)
-
-
-
Method Detail
-
aboutToOpen
void aboutToOpen() throws FMFileManagerException
- Throws:
FMFileManagerException
-
getLength
long getLength(FMFileAccess.FileAccessor fa) throws FMFileManagerException
- Throws:
FMFileManagerException
-
setLength
void setLength(FMFileAccess.FileAccessor fa, long length) throws FMFileManagerException
- Throws:
FMFileManagerException
-
read
void read(FMFileAccess.FileAccessor fa, DirectByteBuffer[] buffers, long offset) throws FMFileManagerException
- Throws:
FMFileManagerException
-
write
void write(FMFileAccess.FileAccessor fa, DirectByteBuffer[] buffers, long position) throws FMFileManagerException
- Throws:
FMFileManagerException
-
flush
void flush() throws FMFileManagerException
- Throws:
FMFileManagerException
-
isPieceCompleteProcessingNeeded
boolean isPieceCompleteProcessingNeeded(int piece_number)
-
setPieceComplete
void setPieceComplete(FMFileAccess.FileAccessor fa, int piece_number, DirectByteBuffer piece_data) throws FMFileManagerException
- Throws:
FMFileManagerException
-
getFile
FMFileImpl getFile()
-
getString
java.lang.String getString()
-
-