@NotStorableClass public class RandomAccessFileDirect extends AbstractRandomAccessFile
HELPER_FILE_UTIL, logger, opened
Constructor and Description |
---|
RandomAccessFileDirect(File file,
int maxRetry,
int retryMsDelay) |
Modifier and Type | Method and Description |
---|---|
void |
closeImpl() |
void |
copy(String fileName)
make copy of this file in other file
|
protected long |
currentPositionInFileImpl() |
void |
deleteIfExistsImpl() |
void |
deleteIfExistsRenamingImpl() |
boolean |
differs(String fileName,
SortedMap<Integer,Integer> diffMap) |
void |
flushImpl() |
File |
getFile() |
long |
lengthImpl() |
void |
openImpl() |
int |
readImpl(byte[] data) |
protected int |
readImpl(byte[] data,
int offset,
int length) |
void |
seekImpl(long positionInFile) |
void |
setLengthImpl(long newSize) |
void |
writeImpl(byte[] data) |
protected void |
writeImpl(byte[] data,
int length) |
protected void |
writeImpl(byte[] data,
int offset,
int length) |
bitsForValue, close, currentPositionInFile, deleteIfExists, deleteIfExistsRenaming, flush, isClose, isOpen, length, open, read, read, seek, setLength, write, write, write
public RandomAccessFileDirect(File file, int maxRetry, int retryMsDelay)
public File getFile()
public void openImpl() throws FileIOException
openImpl
in class AbstractRandomAccessFile
FileIOException
public void closeImpl() throws FileIOException
closeImpl
in class AbstractRandomAccessFile
FileIOException
public void flushImpl() throws FileIOException
flushImpl
in class AbstractRandomAccessFile
FileIOException
public void deleteIfExistsImpl() throws FileIOException
deleteIfExistsImpl
in class AbstractRandomAccessFile
FileIOException
public void deleteIfExistsRenamingImpl() throws FileIOException
deleteIfExistsRenamingImpl
in class AbstractRandomAccessFile
FileIOException
public long lengthImpl() throws FileIOException
lengthImpl
in class AbstractRandomAccessFile
FileIOException
public int readImpl(byte[] data) throws FileIOException
readImpl
in class AbstractRandomAccessFile
FileIOException
protected int readImpl(byte[] data, int offset, int length) throws FileIOException
readImpl
in class AbstractRandomAccessFile
FileIOException
public void seekImpl(long positionInFile) throws FileIOException
seekImpl
in class AbstractRandomAccessFile
FileIOException
protected long currentPositionInFileImpl() throws FileIOException
currentPositionInFileImpl
in class AbstractRandomAccessFile
FileIOException
public void setLengthImpl(long newSize) throws FileIOException
setLengthImpl
in class AbstractRandomAccessFile
FileIOException
public void writeImpl(byte[] data) throws FileIOException
writeImpl
in class AbstractRandomAccessFile
FileIOException
protected void writeImpl(byte[] data, int length) throws FileIOException
writeImpl
in class AbstractRandomAccessFile
FileIOException
protected void writeImpl(byte[] data, int offset, int length) throws FileIOException
writeImpl
in class AbstractRandomAccessFile
FileIOException
public void copy(String fileName) throws FileIOException
IRandomAccessFile
fileName
- the copy file nameFileIOException
public boolean differs(String fileName, SortedMap<Integer,Integer> diffMap) throws FileIOException
FileIOException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.