public class MasterHeaderBlock
extends java.lang.Object
Note that we need to support multiple versions of the NuFX archive format. Some details may be invalid, depending on version, and those are documented in the getter methods.
| Constructor and Description |
|---|
MasterHeaderBlock(LittleEndianByteInputStream bs)
Create the Master Header Block, based on the LittleEndianByteInputStream.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getArchiveCreateWhen() |
java.util.Date |
getArchiveModWhen() |
int |
getMasterCrc() |
long |
getMasterEof() |
int |
getMasterVersion() |
long |
getTotalRecords() |
boolean |
isValidCrc() |
void |
setArchiveCreateWhen(java.util.Date archiveCreateWhen) |
void |
setArchiveModWhen(java.util.Date archiveModWhen) |
void |
setMasterCrc(int masterCrc) |
void |
setMasterEof(long masterEof) |
void |
setMasterVersion(int masterVersion) |
void |
setTotalRecords(long totalRecords) |
public MasterHeaderBlock(LittleEndianByteInputStream bs) throws java.io.IOException
java.io.IOExceptionpublic int getMasterCrc()
public void setMasterCrc(int masterCrc)
public long getTotalRecords()
public void setTotalRecords(long totalRecords)
public java.util.Date getArchiveCreateWhen()
public void setArchiveCreateWhen(java.util.Date archiveCreateWhen)
public java.util.Date getArchiveModWhen()
public void setArchiveModWhen(java.util.Date archiveModWhen)
public int getMasterVersion()
public void setMasterVersion(int masterVersion)
public long getMasterEof()
public void setMasterEof(long masterEof)
public boolean isValidCrc()