public interface IRandomAccessFile
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close the file
|
void |
copy(String fileName)
make copy of this file in other file
|
long |
currentPositionInFile() |
void |
deleteIfExists()
delete file if exist
|
void |
deleteIfExistsRenaming() |
boolean |
differs(String fileName,
SortedMap<Integer,Integer> diffMap) |
void |
flush()
flush all modification on disk
|
File |
getFile() |
boolean |
isClose() |
boolean |
isOpen() |
long |
length() |
void |
open()
open the file
|
int |
read(byte[] data) |
int |
read(byte[] data,
int offset,
int length) |
void |
seek(long positionInFile) |
void |
setLength(long newSize) |
void |
write(byte[] data) |
void |
write(byte[] data,
int length) |
void |
write(byte[] data,
int offset,
int length) |
File getFile()
void open()
throws FileIOException
FileIOExceptionvoid close()
throws FileIOException
FileIOExceptionboolean isOpen()
throws FileIOException
FileIOExceptionboolean isClose()
throws FileIOException
FileIOExceptionvoid flush()
throws FileIOException
FileIOExceptionvoid deleteIfExists()
throws FileIOException
FileIOExceptionvoid deleteIfExistsRenaming()
throws FileIOException
FileIOExceptionvoid seek(long positionInFile)
throws FileIOException
FileIOExceptionint read(byte[] data)
throws FileIOException
FileIOExceptionint read(byte[] data,
int offset,
int length)
throws FileIOException
FileIOExceptionvoid write(byte[] data)
throws FileIOException
FileIOExceptionvoid write(byte[] data,
int length)
throws FileIOException
FileIOExceptionvoid write(byte[] data,
int offset,
int length)
throws FileIOException
FileIOExceptionlong currentPositionInFile()
throws FileIOException
FileIOExceptionlong length()
throws FileIOException
FileIOExceptionvoid setLength(long newSize)
throws FileIOException
FileIOExceptionvoid copy(String fileName) throws FileIOException
fileName - the copy file nameFileIOExceptionboolean differs(String fileName, SortedMap<Integer,Integer> diffMap) throws FileIOException
fileName - diffMap - FileIOExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.