Package binaryFileStorage
Class BinaryHeader
java.lang.Object
binaryFileStorage.BinaryHeader
- All Implemented Interfaces:
 Serializable,ManagedParameters
- See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionBinaryHeader(String moduleType, String moduleName, String streamName, int fileFormat)  - 
Method Summary
Modifier and TypeMethodDescriptionlonglongbyte[]longintintGet a set of data that describes all of the parameters in a classbooleanRead binary header informationvoidsetAnalysisDate(long analysisDate) voidsetDataDate(long dataDate) voidsetExtraInfo(byte[] extraInfo) voidsetFileStartSample(long fileStartSample) voidsetHeaderFormat(int headerFormat) voidsetHeaderLength(int headerLength) voidsetModuleName(String moduleName) voidsetModuleType(String moduleType) voidsetPamguardBranch(String pamguardBranch) voidsetPamguardVersion(String pamguardVersion) voidsetStreamName(String streamName) booleanWrite 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:ManagedParametersGet a set of data that describes all of the parameters in a class- Specified by:
 getParameterSetin interfaceManagedParameters- Returns:
 - description of the parameters in a class.
 
 
 -