@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, writepublic RandomAccessFileDirect(File file, int maxRetry, int retryMsDelay)
public File getFile()
public void openImpl()
              throws FileIOException
openImpl in class AbstractRandomAccessFileFileIOExceptionpublic void closeImpl()
               throws FileIOException
closeImpl in class AbstractRandomAccessFileFileIOExceptionpublic void flushImpl()
               throws FileIOException
flushImpl in class AbstractRandomAccessFileFileIOExceptionpublic void deleteIfExistsImpl()
                        throws FileIOException
deleteIfExistsImpl in class AbstractRandomAccessFileFileIOExceptionpublic void deleteIfExistsRenamingImpl()
                                throws FileIOException
deleteIfExistsRenamingImpl in class AbstractRandomAccessFileFileIOExceptionpublic long lengthImpl()
                throws FileIOException
lengthImpl in class AbstractRandomAccessFileFileIOExceptionpublic int readImpl(byte[] data)
             throws FileIOException
readImpl in class AbstractRandomAccessFileFileIOExceptionprotected int readImpl(byte[] data,
           int offset,
           int length)
                throws FileIOException
readImpl in class AbstractRandomAccessFileFileIOExceptionpublic void seekImpl(long positionInFile)
              throws FileIOException
seekImpl in class AbstractRandomAccessFileFileIOExceptionprotected long currentPositionInFileImpl()
                                  throws FileIOException
currentPositionInFileImpl in class AbstractRandomAccessFileFileIOExceptionpublic void setLengthImpl(long newSize)
                   throws FileIOException
setLengthImpl in class AbstractRandomAccessFileFileIOExceptionpublic void writeImpl(byte[] data)
               throws FileIOException
writeImpl in class AbstractRandomAccessFileFileIOExceptionprotected void writeImpl(byte[] data,
             int length)
                  throws FileIOException
writeImpl in class AbstractRandomAccessFileFileIOExceptionprotected void writeImpl(byte[] data,
             int offset,
             int length)
                  throws FileIOException
writeImpl in class AbstractRandomAccessFileFileIOExceptionpublic void copy(String fileName) throws FileIOException
IRandomAccessFilefileName - the copy file nameFileIOExceptionpublic boolean differs(String fileName, SortedMap<Integer,Integer> diffMap) throws FileIOException
FileIOExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.