Class BinaryHeader

java.lang.Object
binaryFileStorage.BinaryHeader
All Implemented Interfaces:
Serializable, ManagedParameters

public class BinaryHeader extends Object implements Serializable, ManagedParameters
See Also:
  • Constructor Details

    • BinaryHeader

      public BinaryHeader(String moduleType, String moduleName, String streamName, int fileFormat)
    • BinaryHeader

      public BinaryHeader()
  • Method Details

    • getExtraInfo

      public byte[] getExtraInfo()
    • setExtraInfo

      public void setExtraInfo(byte[] extraInfo)
    • writeHeader

      public boolean writeHeader(DataOutputStream dos)
      Write the header to the output stream
      Parameters:
      dos - opened DataOutputStream
      Returns:
      true if successful
    • readHeader

      public boolean readHeader(DataInputStream dis)
      Read binary header information
      Parameters:
      dis - data input stream
      Returns:
      true if read sucessfully. False otherwise
    • getHeaderLength

      public int getHeaderLength()
      Returns:
      the headerLength
    • setHeaderLength

      public void setHeaderLength(int headerLength)
      Parameters:
      headerLength - the headerLength to set
    • getHeaderFormat

      public int getHeaderFormat()
      Returns:
      the headerFormat
    • setHeaderFormat

      public void setHeaderFormat(int headerFormat)
      Parameters:
      headerFormat - the headerFormat to set
    • getPamguardVersion

      public String getPamguardVersion()
      Returns:
      the pamguardVersion
    • setPamguardVersion

      public void setPamguardVersion(String pamguardVersion)
      Parameters:
      pamguardVersion - the pamguardVersion to set
    • getPamguardBranch

      public String getPamguardBranch()
      Returns:
      the pamguardBranch
    • setPamguardBranch

      public void setPamguardBranch(String pamguardBranch)
      Parameters:
      pamguardBranch - the pamguardBranch to set
    • getDataDate

      public long getDataDate()
      Returns:
      the dataDate
    • setDataDate

      public void setDataDate(long dataDate)
      Parameters:
      dataDate - the dataDate to set
    • getFileStartSample

      public long getFileStartSample()
    • setFileStartSample

      public void setFileStartSample(long fileStartSample)
    • getAnalysisDate

      public long getAnalysisDate()
      Returns:
      the analysisDate
    • setAnalysisDate

      public void setAnalysisDate(long analysisDate)
      Parameters:
      analysisDate - the analysisDate to set
    • getModuleType

      public String getModuleType()
      Returns:
      the moduleType
    • setModuleType

      public void setModuleType(String moduleType)
      Parameters:
      moduleType - the moduleType to set
    • getModuleName

      public String getModuleName()
      Returns:
      the moduleName
    • setModuleName

      public void setModuleName(String moduleName)
      Parameters:
      moduleName - the moduleName to set
    • getStreamName

      public String getStreamName()
      Returns:
      the streamName
    • setStreamName

      public void setStreamName(String streamName)
      Parameters:
      streamName - the streamName to set
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.