Class DataMapSerialiser

java.lang.Object
binaryFileStorage.DataMapSerialiser

public class DataMapSerialiser extends Object
  • Constructor Details

    • DataMapSerialiser

      public DataMapSerialiser(BinaryStore binaryStore)
  • Method Details

    • loadDataMap

      public boolean loadDataMap(ArrayList<PamDataBlock> streams, File file)
    • findFile

      public int findFile(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.
      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

      public File getSerialisedFile()
      Returns:
      the serialisedFile