Package binaryFileStorage
Class DataMapSerialiser
java.lang.Object
binaryFileStorage.DataMapSerialiser
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintSearch to see if a file exists already, in which case it won't be necessary to add it to the data map.booleanbooleanloadDataMap(ArrayList<PamDataBlock> streams, File file) booleanremoveFileAtIndex(int fileIndex) Remove a file from the datamapbooleanvoidsetHasChanges(boolean hasChanges)  
- 
Constructor Details
- 
DataMapSerialiser
 
 - 
 - 
Method Details
- 
loadDataMap
 - 
findFile
Search to see if a file exists already, in which case it won't be necessary to add it to the data map.- Parameters:
 aFile- file to search for. Note that the search is done only on the final name part of the file.- Returns:
 - index of file in list or -1 if not found
 
 - 
removeFileAtIndex
public boolean removeFileAtIndex(int fileIndex) Remove a file from the datamap- Parameters:
 fileIndex- index of file- Returns:
 - true if file was found and removed.
 
 - 
saveDataMaps
public boolean saveDataMaps() - 
setHasChanges
public void setHasChanges(boolean hasChanges)  - 
isHasChanges
public boolean isHasChanges()- Returns:
 - the hasChanges
 
 - 
getSerialisedFile
- Returns:
 - the serialisedFile
 
 
 -