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
HeapException
void writeToFile() throws HeapException
HeapException
byte[] writeToFileGetWrited() throws HeapException
HeapException
void readFromFile() throws HeapException
HeapException
void clear()
void setValueIsChangedValueToSave() throws HeapException
HeapException
void setValueIsNotChanged()
boolean isValueChangedToSave()
boolean isJustCreated()
int getRecordSize() throws HeapException
HeapException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.