Package binaryFileStorage
Class ModuleHeader
java.lang.Object
binaryFileStorage.ModuleHeader
- All Implemented Interfaces:
Serializable
,ManagedParameters
- Direct Known Subclasses:
ClickBinaryModuleHeader
,LtsaModuleHeader
,WhistleBinaryModuleHeader
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
createHeader
(BinaryObjectData binaryObjectData, BinaryHeader binaryHeader) Read data from a byte array to recreate a module header being read back from file.int
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface PamModel.parametermanager.ManagedParameters
getParameterSet
-
Constructor Details
-
ModuleHeader
public ModuleHeader(int moduleVersion) - Parameters:
moduleVersion
-
-
-
Method Details
-
createHeader
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 filebinaryHeader
- binary Header from data file- Returns:
- true if unpacked successfully.
-
getModuleVersion
public int getModuleVersion()- Returns:
- the moduleVersion
-