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
IOException
public boolean loadAndCheckRecord(int offset, Record record) throws IOException
IOException
public void resize() throws IOException
IOException
public void force() throws IOException
IOException
public void dispose()
public void write(int offset, ByteBuffer buffer) throws IOException
IOException
public void readRecordHeader(int offset, Record record) throws IOException
IOException
public void read(int offset, byte[] answer) throws IOException
IOException
public void copyTo(File location) throws IOException
IOException
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.