org.apache.kahadb.journal
Class ReadOnlyDataFile
java.lang.Object
org.apache.kahadb.util.LinkedNode<DataFile>
org.apache.kahadb.journal.DataFile
org.apache.kahadb.journal.ReadOnlyDataFile
- All Implemented Interfaces:
- Comparable<DataFile>
public class ReadOnlyDataFile
- extends DataFile
Allows you to open a data file in read only mode. Useful when working with
archived data files.
Methods inherited from class org.apache.kahadb.journal.DataFile |
compareTo, equals, getCorruptedBlocks, getDataFileId, getFile, getLength, hashCode, incrementLength, openRandomAccessFile, setLength, toString |
Methods inherited from class org.apache.kahadb.util.LinkedNode |
getHeadNode, getList, getNext, getNextCircular, getPrevious, getPreviousCircular, getTailNode, isHeadNode, isLinked, isTailNode, linkAfter, linkAfter, linkBefore, linkBefore, linkToHead, linkToTail, splitAfter, splitBefore, unlink |
openRandomAccessFile
public RandomAccessFile openRandomAccessFile(boolean appender)
throws IOException
- Throws:
IOException
closeRandomAccessFile
public void closeRandomAccessFile(RandomAccessFile file)
throws IOException
- Overrides:
closeRandomAccessFile
in class DataFile
- Throws:
IOException
delete
public boolean delete()
throws IOException
- Overrides:
delete
in class DataFile
- Throws:
IOException
move
public void move(File targetDirectory)
throws IOException
- Overrides:
move
in class DataFile
- Throws:
IOException
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.