Class ModuleFooter

java.lang.Object
binaryFileStorage.ModuleFooter
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClickBinaryModuleFooter

public abstract class ModuleFooter extends Object implements Serializable
Class to contain module specific information which will be stored at the end of a binary data file, just before the BinaryFooter.
Author:
Doug Gillespie
See Also:
  • Constructor Details

    • ModuleFooter

      public ModuleFooter()
  • Method Details

    • getByteArray

      public abstract byte[] getByteArray()
      Get module specific data to write to the footer. Note that this is just the module data, not the object identifier.
      Returns:
      byte array or null
    • createFooter

      public abstract boolean createFooter(BinaryObjectData binaryObjectData, BinaryHeader binaryHeader, ModuleHeader moduleHeader)
      Read data from a byte array to recreate a module header being read back from file.

      The BinaryHeader and ModuleHeader can be used to check version numbers if required.

      Parameters:
      binaryObjectData - data read from file
      binaryHeader - binary Header from data file
      moduleHeader - module specific header from data file
      Returns:
      true if unpacked successfully.