@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
FileIOExceptionpublic void close()
throws FileIOException
FileIOExceptionpublic void force(boolean metaData)
throws IOException,
FileIOException
IOExceptionFileIOExceptionpublic void deleteIfExists()
throws FileIOException
FileIOExceptionpublic void deleteIfExistsRenaming()
throws FileIOException
FileIOExceptionpublic long randomAccessFileLength()
throws FileIOException
FileIOExceptionpublic long fileChannelSize()
throws FileIOException
FileIOExceptionpublic File getFile()
public int getMaxRetry()
public int getRetryMsDelay()
public RandomAccessFile getRandomAccessFile()
public FileChannel getFileChannel()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.