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
public class FMFileUnlimited extends FMFileImpl
-
-
Field Summary
-
Fields inherited from class com.biglybt.core.diskmanager.file.impl.FMFileImpl
READ_ACCESS_MODE, this_mon, WRITE_ACCESS_MODE
-
Fields inherited from interface com.biglybt.core.diskmanager.file.FMFile
FM_READ, FM_WRITE, FT_COMPACT, FT_LINEAR, FT_PIECE_REORDER, FT_PIECE_REORDER_COMPACT
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FMFileUnlimited(FMFileOwner owner, FMFileManagerImpl manager, java.io.File file, int type, boolean force)
protected
FMFileUnlimited(FMFileUnlimited basis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
FMFile
createClone()
long
getLength()
void
read(DirectByteBuffer[] buffers, long offset)
void
read(DirectByteBuffer buffer, long offset)
void
setAccessMode(int mode)
void
setLength(long length)
void
setPieceComplete(int piece_number, DirectByteBuffer piece_data)
void
write(DirectByteBuffer[] buffers, long position)
void
write(DirectByteBuffer buffer, long position)
-
Methods inherited from class com.biglybt.core.diskmanager.file.impl.FMFileImpl
closeSupport, createDirs, delete, deleteDirs, ensureOpen, exists, flush, generateEvidence, getAccessMode, 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 Detail
-
FMFileUnlimited
protected FMFileUnlimited(FMFileOwner owner, FMFileManagerImpl manager, java.io.File file, int type, boolean force) throws FMFileManagerException
- Throws:
FMFileManagerException
-
FMFileUnlimited
protected FMFileUnlimited(FMFileUnlimited basis) throws FMFileManagerException
- Throws:
FMFileManagerException
-
-
Method Detail
-
createClone
public FMFile createClone() throws FMFileManagerException
- Throws:
FMFileManagerException
-
setAccessMode
public void setAccessMode(int mode) throws FMFileManagerException
- Throws:
FMFileManagerException
-
getLength
public long getLength() throws FMFileManagerException
- Throws:
FMFileManagerException
-
setLength
public void setLength(long length) throws FMFileManagerException
- Throws:
FMFileManagerException
-
setPieceComplete
public void setPieceComplete(int piece_number, DirectByteBuffer piece_data) throws FMFileManagerException
- Throws:
FMFileManagerException
-
read
public void read(DirectByteBuffer buffer, long offset) throws FMFileManagerException
- Throws:
FMFileManagerException
-
read
public void read(DirectByteBuffer[] buffers, long offset) throws FMFileManagerException
- Throws:
FMFileManagerException
-
write
public void write(DirectByteBuffer buffer, long position) throws FMFileManagerException
- Throws:
FMFileManagerException
-
write
public void write(DirectByteBuffer[] buffers, long position) throws FMFileManagerException
- Throws:
FMFileManagerException
-
close
public void close() throws FMFileManagerException
- Throws:
FMFileManagerException
-
-