public interface IFileStorable
FileForStorable| Modifier and Type | Method and Description |
|---|---|
void |
clear()
initial state:no value to save since not read and not write
|
long |
getPositionInFile() |
long |
getPreviousRecordPositionInFile() |
int |
getRecordSize()
get the record size
|
boolean |
isJustCreated() |
boolean |
isValueChangedToSave()
to know if the value state change
|
void |
readFromFile()
read this file storable from file
|
void |
setValueIsChangedValueToSave()
set this record have value changed, so to save
|
void |
setValueIsNotChanged() |
void |
writeToFile()
write this file storable to file
|
byte[] |
writeToFileGetWrited() |
long getPositionInFile()
long getPreviousRecordPositionInFile()
throws HeapException
HeapExceptionvoid writeToFile()
throws HeapException
HeapExceptionbyte[] writeToFileGetWrited()
throws HeapException
HeapExceptionvoid readFromFile()
throws HeapException
HeapExceptionvoid clear()
void setValueIsChangedValueToSave()
throws HeapException
HeapExceptionvoid setValueIsNotChanged()
boolean isValueChangedToSave()
boolean isJustCreated()
int getRecordSize()
throws HeapException
HeapExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.