Package binaryFileStorage
Class BinaryHeader
java.lang.Object
binaryFileStorage.BinaryHeader
- All Implemented Interfaces:
Serializable
,ManagedParameters
- See Also:
-
Constructor Summary
ConstructorDescriptionBinaryHeader
(String moduleType, String moduleName, String streamName, int fileFormat) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
byte[]
long
int
int
Get a set of data that describes all of the parameters in a classboolean
Read binary header informationvoid
setAnalysisDate
(long analysisDate) void
setDataDate
(long dataDate) void
setExtraInfo
(byte[] extraInfo) void
setFileStartSample
(long fileStartSample) void
setHeaderFormat
(int headerFormat) void
setHeaderLength
(int headerLength) void
setModuleName
(String moduleName) void
setModuleType
(String moduleType) void
setPamguardBranch
(String pamguardBranch) void
setPamguardVersion
(String pamguardVersion) void
setStreamName
(String streamName) boolean
Write the header to the output stream
-
Constructor Details
-
BinaryHeader
-
BinaryHeader
public BinaryHeader()
-
-
Method Details
-
getExtraInfo
public byte[] getExtraInfo() -
setExtraInfo
public void setExtraInfo(byte[] extraInfo) -
writeHeader
Write the header to the output stream- Parameters:
dos
- opened DataOutputStream- Returns:
- true if successful
-
readHeader
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
- Returns:
- the pamguardVersion
-
setPamguardVersion
- Parameters:
pamguardVersion
- the pamguardVersion to set
-
getPamguardBranch
- Returns:
- the pamguardBranch
-
setPamguardBranch
- 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
- Returns:
- the moduleType
-
setModuleType
- Parameters:
moduleType
- the moduleType to set
-
getModuleName
- Returns:
- the moduleName
-
setModuleName
- Parameters:
moduleName
- the moduleName to set
-
getStreamName
- Returns:
- the streamName
-
setStreamName
- Parameters:
streamName
- the streamName to set
-
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-