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
FileIOException
void close() throws FileIOException
FileIOException
boolean isOpen() throws FileIOException
FileIOException
boolean isClose() throws FileIOException
FileIOException
void flush() throws FileIOException
FileIOException
void deleteIfExists() throws FileIOException
FileIOException
void deleteIfExistsRenaming() throws FileIOException
FileIOException
void seek(long positionInFile) throws FileIOException
FileIOException
int read(byte[] data) throws FileIOException
FileIOException
int read(byte[] data, int offset, int length) throws FileIOException
FileIOException
void write(byte[] data) throws FileIOException
FileIOException
void write(byte[] data, int length) throws FileIOException
FileIOException
void write(byte[] data, int offset, int length) throws FileIOException
FileIOException
long currentPositionInFile() throws FileIOException
FileIOException
long length() throws FileIOException
FileIOException
void setLength(long newSize) throws FileIOException
FileIOException
void copy(String fileName) throws FileIOException
fileName
- the copy file nameFileIOException
boolean differs(String fileName, SortedMap<Integer,Integer> diffMap) throws FileIOException
fileName
- diffMap
- FileIOException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.