Interface FMFile
- All Known Implementing Classes:
FMFileImpl
,FMFileLimited
,FMFilePadding
,FMFileTestImpl
,FMFileUnlimited
public interface FMFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
delete()
void
ensureOpen
(String reason) boolean
exists()
void
flush()
int
long
long
getName()
getOwner()
int
boolean
isClone()
boolean
isOpen()
void
moveFile
(File new_file, FileUtil.ProgressListener pl) void
read
(DirectByteBuffer[] buffers, long offset) void
read
(DirectByteBuffer buffer, long offset) void
renameFile
(String new_name) void
setAccessMode
(int mode) void
setLength
(long length) void
setPieceComplete
(int piece_number, DirectByteBuffer piece_data) void
setStorageType
(int type, boolean force) void
write
(DirectByteBuffer[] buffers, long position) void
write
(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()
-