public interface EntityFile<T>
| Modifier and Type | Method and Description |
|---|---|
void |
batchWrite(List<T> entities) |
void |
close() |
void |
createNewFile() |
boolean |
exists() |
File |
getAbsoluteFile() |
String |
getAbsolutePath() |
int |
getBatchLength() |
ReadWriteLock |
getLock() |
String |
getName() |
long |
getOffset() |
long |
length() |
void |
open() |
T |
read() |
void |
seek(long value) |
void |
setBatchLength(int value) |
void |
setLength(long value) |
void |
write(T value) |
void setBatchLength(int value)
int getBatchLength()
ReadWriteLock getLock()
File getAbsoluteFile()
String getAbsolutePath()
String getName()
void createNewFile()
throws IOException
IOExceptionvoid open()
throws IOException
IOExceptionvoid seek(long value)
throws IOException
IOExceptionlong getOffset()
throws IOException
IOExceptionvoid batchWrite(List<T> entities) throws IOException
IOExceptionvoid write(T value) throws IOException
IOExceptionT read() throws IOException
IOExceptionlong length()
throws IOException
IOExceptionvoid setLength(long value)
throws IOException
IOExceptionboolean exists()
void close()
throws IOException
IOExceptionCopyright © 2016. All rights reserved.