@NotStorableClass public class RandomAccessFileDirectMapped extends RandomAccessFileDirectNio
currentPositionInFile, fileChannel, randomAccessFile
HELPER_FILE_UTIL, logger, opened
Constructor and Description |
---|
RandomAccessFileDirectMapped(File file,
int maxBufferSize,
int maxNumberOfBuffer,
int maxRetry,
int retryMsDelay) |
Modifier and Type | Method and Description |
---|---|
void |
closeImpl() |
void |
flushImpl() |
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) |
void |
writeImpl(byte[] data,
int length) |
protected void |
writeImpl(byte[] data,
int offset,
int length) |
copy, currentPositionInFileImpl, deleteIfExistsImpl, deleteIfExistsRenamingImpl, differs, getFile
bitsForValue, close, currentPositionInFile, deleteIfExists, deleteIfExistsRenaming, flush, isClose, isOpen, length, open, read, read, seek, setLength, write, write, write
public RandomAccessFileDirectMapped(File file, int maxBufferSize, int maxNumberOfBuffer, int maxRetry, int retryMsDelay) throws FileIOException
FileIOException
public void openImpl() throws FileIOException
openImpl
in class RandomAccessFileDirectNio
FileIOException
public void closeImpl() throws FileIOException
closeImpl
in class RandomAccessFileDirectNio
FileIOException
public void seekImpl(long positionInFile) throws FileIOException
seekImpl
in class RandomAccessFileDirectNio
FileIOException
public void flushImpl() throws FileIOException
flushImpl
in class RandomAccessFileDirectNio
FileIOException
public long lengthImpl() throws FileIOException
lengthImpl
in class RandomAccessFileDirectNio
FileIOException
public void setLengthImpl(long newSize) throws FileIOException
setLengthImpl
in class RandomAccessFileDirectNio
FileIOException
public int readImpl(byte[] data) throws FileIOException
readImpl
in class RandomAccessFileDirectNio
FileIOException
protected int readImpl(byte[] data, int offset, int length) throws FileIOException
readImpl
in class RandomAccessFileDirectNio
FileIOException
public void writeImpl(byte[] data) throws FileIOException
writeImpl
in class RandomAccessFileDirectNio
FileIOException
public void writeImpl(byte[] data, int length) throws FileIOException
writeImpl
in class RandomAccessFileDirectNio
FileIOException
protected void writeImpl(byte[] data, int offset, int length) throws FileIOException
writeImpl
in class RandomAccessFileDirectNio
FileIOException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.