public final class LogFile extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
copyTo(File location) |
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) |
public LogFile(File file, int initialSize) throws IOException
IOExceptionpublic boolean loadAndCheckRecord(int offset,
Record record)
throws IOException
IOExceptionpublic void resize()
throws IOException
IOExceptionpublic void force()
throws IOException
IOExceptionpublic void dispose()
public void write(int offset,
ByteBuffer buffer)
throws IOException
IOExceptionpublic void readRecordHeader(int offset,
Record record)
throws IOException
IOExceptionpublic void read(int offset,
byte[] answer)
throws IOException
IOExceptionpublic void copyTo(File location) throws IOException
IOExceptionCopyright © 2005–2019. All rights reserved.