Class FMFileUnlimited
java.lang.Object
com.biglybt.core.diskmanager.file.impl.FMFileImpl
com.biglybt.core.diskmanager.file.impl.FMFileUnlimited
- All Implemented Interfaces:
FMFile
- Direct Known Subclasses:
FMFileTestImpl
-
Field Summary
Fields inherited from class FMFileImpl
READ_ACCESS_MODE, switch_to_upload_only_enable, this_mon, WRITE_ACCESS_MODEFields inherited from interface FMFile
FM_READ, FM_WRITE, FT_COMPACT, FT_LINEAR, FT_PIECE_REORDER, FT_PIECE_REORDER_COMPACT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFMFileUnlimited(FMFileOwner owner, FMFileManagerImpl manager, StringInterner.FileKey file, int type, boolean force) protectedFMFileUnlimited(FMFileUnlimited basis) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longvoidread(DirectByteBuffer[] buffers, long offset) voidread(DirectByteBuffer buffer, long offset) voidsetAccessMode(int mode) voidsetLength(long length) voidsetPieceComplete(int piece_number, DirectByteBuffer piece_data) voidwrite(DirectByteBuffer[] buffers, long position) voidwrite(DirectByteBuffer buffer, long position) Methods inherited from class FMFileImpl
closeSupport, createDirs, delete, deleteDirs, ensureOpen, exists, flush, generateEvidence, getAccessMode, getFile, getLastModified, getLengthCache, getLengthSupport, getLinkedFile, getManager, getName, getOwner, getStorageType, getString, isClone, isOpen, isPieceCompleteProcessingNeeded, moveFile, openSupport, readSupport, readSupport, renameFile, reopen, setAccessModeSupport, setLengthSupport, setPieceCompleteSupport, setStorageType, writeSupport, writeSupport
-
Constructor Details
-
FMFileUnlimited
protected FMFileUnlimited(FMFileOwner owner, FMFileManagerImpl manager, StringInterner.FileKey file, int type, boolean force) throws FMFileManagerException - Throws:
FMFileManagerException
-
FMFileUnlimited
- Throws:
FMFileManagerException
-
-
Method Details
-
createClone
- Throws:
FMFileManagerException
-
setAccessMode
- Throws:
FMFileManagerException
-
getLength
- Throws:
FMFileManagerException
-
setLength
- Throws:
FMFileManagerException
-
setPieceComplete
public void setPieceComplete(int piece_number, DirectByteBuffer piece_data) throws FMFileManagerException - Throws:
FMFileManagerException
-
read
- Throws:
FMFileManagerException
-
read
- Throws:
FMFileManagerException
-
write
- Throws:
FMFileManagerException
-
write
- Throws:
FMFileManagerException
-
close
- Throws:
FMFileManagerException
-