com.aelitis.azureus.core.diskmanager.file
Interface FMFile
- All Known Implementing Classes:
- FMFileImpl, FMFileLimited, FMFileTestImpl, FMFileUnlimited
public interface FMFile
FT_LINEAR
static final int FT_LINEAR
- See Also:
- Constant Field Values
FT_COMPACT
static final int FT_COMPACT
- See Also:
- Constant Field Values
FT_PIECE_REORDER
static final int FT_PIECE_REORDER
- See Also:
- Constant Field Values
FT_PIECE_REORDER_COMPACT
static final int FT_PIECE_REORDER_COMPACT
- See Also:
- Constant Field Values
FM_READ
static final int FM_READ
- See Also:
- Constant Field Values
FM_WRITE
static final int FM_WRITE
- See Also:
- Constant Field Values
getName
java.lang.String getName()
exists
boolean exists()
getOwner
FMFileOwner getOwner()
moveFile
void moveFile(java.io.File new_file)
throws FMFileManagerException
- Throws:
FMFileManagerException
renameFile
void renameFile(java.lang.String new_name)
throws FMFileManagerException
- Throws:
FMFileManagerException
setAccessMode
void setAccessMode(int mode)
throws FMFileManagerException
- Throws:
FMFileManagerException
getAccessMode
int getAccessMode()
setStorageType
void setStorageType(int type)
throws FMFileManagerException
- Throws:
FMFileManagerException
getStorageType
int getStorageType()
ensureOpen
void ensureOpen(java.lang.String reason)
throws FMFileManagerException
- Throws:
FMFileManagerException
getLength
long getLength()
throws FMFileManagerException
- Throws:
FMFileManagerException
setLength
void setLength(long length)
throws FMFileManagerException
- Throws:
FMFileManagerException
setPieceComplete
void setPieceComplete(int piece_number,
DirectByteBuffer piece_data)
throws FMFileManagerException
- Throws:
FMFileManagerException
read
void read(DirectByteBuffer buffer,
long offset)
throws FMFileManagerException
- Throws:
FMFileManagerException
read
void read(DirectByteBuffer[] buffers,
long offset)
throws FMFileManagerException
- Throws:
FMFileManagerException
write
void write(DirectByteBuffer buffer,
long position)
throws FMFileManagerException
- Throws:
FMFileManagerException
write
void write(DirectByteBuffer[] buffers,
long position)
throws FMFileManagerException
- Throws:
FMFileManagerException
flush
void flush()
throws FMFileManagerException
- Throws:
FMFileManagerException
close
void close()
throws FMFileManagerException
- Throws:
FMFileManagerException
isOpen
boolean isOpen()
delete
void delete()
throws FMFileManagerException
- Throws:
FMFileManagerException
createClone
FMFile createClone()
throws FMFileManagerException
- Throws:
FMFileManagerException
isClone
boolean isClone()