@NotStorableClass public class ExRandomAccessFile extends Object
Modifier and Type | Field and Description |
---|---|
protected FileChannel |
fileChannel
the file channel associated with the random read write file
|
protected int |
maxRetry |
protected int |
retryMsDelay |
Constructor and Description |
---|
ExRandomAccessFile(File file,
int maxRetry,
int retryMsDelay) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
deleteIfExists() |
void |
deleteIfExistsRenaming() |
long |
fileChannelSize() |
void |
force(boolean metaData) |
File |
getFile() |
FileChannel |
getFileChannel() |
int |
getMaxRetry() |
RandomAccessFile |
getRandomAccessFile() |
int |
getRetryMsDelay() |
void |
open() |
long |
randomAccessFileLength() |
protected final int maxRetry
protected final int retryMsDelay
protected FileChannel fileChannel
public ExRandomAccessFile(File file, int maxRetry, int retryMsDelay)
public void open() throws FileIOException
FileIOException
public void close() throws FileIOException
FileIOException
public void force(boolean metaData) throws IOException, FileIOException
IOException
FileIOException
public void deleteIfExists() throws FileIOException
FileIOException
public void deleteIfExistsRenaming() throws FileIOException
FileIOException
public long randomAccessFileLength() throws FileIOException
FileIOException
public long fileChannelSize() throws FileIOException
FileIOException
public File getFile()
public int getMaxRetry()
public int getRetryMsDelay()
public RandomAccessFile getRandomAccessFile()
public FileChannel getFileChannel()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.