Package binaryFileStorage
Class DataMapSerialiser
java.lang.Object
binaryFileStorage.DataMapSerialiser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Search to see if a file exists already, in which case it won't be necessary to add it to the data map.boolean
boolean
loadDataMap
(ArrayList<PamDataBlock> streams, File file) boolean
removeFileAtIndex
(int fileIndex) Remove a file from the datamapboolean
void
setHasChanges
(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
-