public class DataMapSerialiser
extends java.lang.Object
Constructor and Description |
---|
DataMapSerialiser(BinaryStore binaryStore) |
Modifier and Type | Method and Description |
---|---|
int |
findFile(java.io.File aFile)
Search to see if a file exists already, in which case it won't
be necessary to add it to the data map.
|
java.io.File |
getSerialisedFile() |
boolean |
isHasChanges() |
boolean |
loadDataMap(java.util.ArrayList<PamDataBlock> streams,
java.io.File file) |
boolean |
removeFileAtIndex(int fileIndex)
Remove a file from the datamap
|
boolean |
saveDataMaps() |
void |
setHasChanges(boolean hasChanges) |
public DataMapSerialiser(BinaryStore binaryStore)
public boolean loadDataMap(java.util.ArrayList<PamDataBlock> streams, java.io.File file)
public int findFile(java.io.File aFile)
aFile
- file to search for. Note that the search is done only on the
final name part of the file.public boolean removeFileAtIndex(int fileIndex)
fileIndex
- index of filepublic boolean saveDataMaps()
public void setHasChanges(boolean hasChanges)
public boolean isHasChanges()
public java.io.File getSerialisedFile()