Package com.webcodepro.shrinkit
Class MasterHeaderBlock
java.lang.Object
com.webcodepro.shrinkit.MasterHeaderBlock
The Master Header Block contains information about the entire
ShrinkIt archive.
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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate the Master Header Block, based on the LittleEndianByteInputStream. -
Method Summary
Modifier and TypeMethodDescriptionintlongintlongbooleanvoidsetArchiveCreateWhen(Date archiveCreateWhen) voidsetArchiveModWhen(Date archiveModWhen) voidsetMasterCrc(int masterCrc) voidsetMasterEof(long masterEof) voidsetMasterVersion(int masterVersion) voidsetTotalRecords(long totalRecords)
-
Constructor Details
-
MasterHeaderBlock
Create the Master Header Block, based on the LittleEndianByteInputStream.- Throws:
IOException
-
-
Method Details
-
getMasterCrc
public int getMasterCrc() -
setMasterCrc
public void setMasterCrc(int masterCrc) -
getTotalRecords
public long getTotalRecords() -
setTotalRecords
public void setTotalRecords(long totalRecords) -
getArchiveCreateWhen
-
setArchiveCreateWhen
-
getArchiveModWhen
-
setArchiveModWhen
-
getMasterVersion
public int getMasterVersion() -
setMasterVersion
public void setMasterVersion(int masterVersion) -
getMasterEof
public long getMasterEof() -
setMasterEof
public void setMasterEof(long masterEof) -
isValidCrc
public boolean isValidCrc()
-