|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbitronix.tm.journal.TransactionLogCursor
public class TransactionLogCursor
Used to read TransactionLogRecord
objects from a log file.
Constructor Summary | |
---|---|
TransactionLogCursor(File file)
Create a TransactionLogCursor that will read from the specified file. |
Method Summary | |
---|---|
void |
close()
Close the cursor and the underlying file |
TransactionLogRecord |
readLog()
Fetch the next TransactionLogRecord from log, recalculating the CRC and checking it against the stored one. |
TransactionLogRecord |
readLog(boolean skipCrcCheck)
Fetch the next TransactionLogRecord from log. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionLogCursor(File file) throws IOException
file
- the file to read logs from
IOException
- if an I/O error occurs.Method Detail |
---|
public TransactionLogRecord readLog() throws IOException
IOException
- if an I/O error occurs.public TransactionLogRecord readLog(boolean skipCrcCheck) throws IOException
skipCrcCheck
- if set to false, the method will thow an InvalidChecksumException if the CRC on disk does
not match the recalculated one. Otherwise, the CRC is not recalculated nor checked agains the stored one.
IOException
- if an I/O error occurs.public void close() throws IOException
IOException
- if an I/O error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |