T - entry type.public class CheckpointFile<T> extends Object
CheckpointFile.EntryFormatter is used
to convert the entry into a string and vice versa.| Modifier and Type | Class and Description |
|---|---|
static class |
CheckpointFile.CheckpointReadBuffer<T> |
static class |
CheckpointFile.CheckpointWriteBuffer<T> |
static interface |
CheckpointFile.EntryFormatter<T>
This is used to convert the given entry of type
T into a string and vice versa. |
| Constructor and Description |
|---|
CheckpointFile(File file,
int version,
CheckpointFile.EntryFormatter<T> formatter) |
public CheckpointFile(File file, int version, CheckpointFile.EntryFormatter<T> formatter) throws IOException
IOExceptionpublic void write(Collection<T> entries) throws IOException
IOExceptionpublic List<T> read() throws IOException
IOException