Interface FMFile
- All Known Implementing Classes:
FMFileImpl, FMFileLimited, FMFilePadding, FMFileTestImpl, FMFileUnlimited
public interface FMFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voiddelete()voidensureOpen(String reason) booleanexists()voidflush()intlonglonggetName()getOwner()intbooleanisClone()booleanisOpen()voidmoveFile(File new_file, FileUtil.ProgressListener pl) voidread(DirectByteBuffer[] buffers, long offset) voidread(DirectByteBuffer buffer, long offset) voidrenameFile(String new_name) voidsetAccessMode(int mode) voidsetLength(long length) voidsetPieceComplete(int piece_number, DirectByteBuffer piece_data) voidsetStorageType(int type, boolean force) voidwrite(DirectByteBuffer[] buffers, long position) voidwrite(DirectByteBuffer buffer, long position)
-
Field Details
-
FT_LINEAR
static final int FT_LINEAR- See Also:
-
FT_COMPACT
static final int FT_COMPACT- See Also:
-
FT_PIECE_REORDER
static final int FT_PIECE_REORDER- See Also:
-
FT_PIECE_REORDER_COMPACT
static final int FT_PIECE_REORDER_COMPACT- See Also:
-
FM_READ
static final int FM_READ- See Also:
-
FM_WRITE
static final int FM_WRITE- See Also:
-
-
Method Details
-
getName
String getName() -
exists
boolean exists() -
getOwner
FMFileOwner getOwner() -
moveFile
- Throws:
FMFileManagerException
-
renameFile
- Throws:
FMFileManagerException
-
setAccessMode
- Throws:
FMFileManagerException
-
getAccessMode
int getAccessMode() -
setStorageType
- Throws:
FMFileManagerException
-
getStorageType
int getStorageType() -
ensureOpen
- Throws:
FMFileManagerException
-
getLength
- Throws:
FMFileManagerException
-
setLength
- Throws:
FMFileManagerException
-
setPieceComplete
- Throws:
FMFileManagerException
-
read
- Throws:
FMFileManagerException
-
read
- Throws:
FMFileManagerException
-
write
- Throws:
FMFileManagerException
-
write
- Throws:
FMFileManagerException
-
flush
- Throws:
FMFileManagerException
-
close
- Throws:
FMFileManagerException
-
isOpen
boolean isOpen() -
delete
- Throws:
FMFileManagerException
-
createClone
- Throws:
FMFileManagerException
-
isClone
boolean isClone() -
getLastModified
long getLastModified()
-