Class LogFile
java.lang.Object
org.apache.activeio.journal.active.LogFile
Allows read/append access to a LogFile.
- Version:
- $Revision: 1.1 $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
dispose()
void
force()
boolean
loadAndCheckRecord
(int offset, Record record) void
read
(int offset, byte[] answer) void
readRecordHeader
(int offset, Record record) void
resize()
void
write
(int offset, ByteBuffer buffer)
-
Constructor Details
-
LogFile
- Throws:
IOException
-
-
Method Details
-
loadAndCheckRecord
- Throws:
IOException
-
resize
- Throws:
IOException
-
force
- Throws:
IOException
-
dispose
public void dispose() -
write
- Throws:
IOException
-
readRecordHeader
- Throws:
IOException
-
read
- Throws:
IOException
-
copyTo
- Throws:
IOException
-