Package com.webcodepro.shrinkit
Class MasterHeaderBlock
- java.lang.Object
-
- com.webcodepro.shrinkit.MasterHeaderBlock
-
public class MasterHeaderBlock extends java.lang.Object
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:
- Apple II File Type Note $E0/$8002
-
-
Constructor Summary
Constructors Constructor Description MasterHeaderBlock(LittleEndianByteInputStream bs)
Create the Master Header Block, based on the LittleEndianByteInputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
MasterHeaderBlock
public MasterHeaderBlock(LittleEndianByteInputStream bs) throws java.io.IOException
Create the Master Header Block, based on the LittleEndianByteInputStream.- Throws:
java.io.IOException
-
-
Method Detail
-
getMasterCrc
public int getMasterCrc()
-
setMasterCrc
public void setMasterCrc(int masterCrc)
-
getTotalRecords
public long getTotalRecords()
-
setTotalRecords
public void setTotalRecords(long totalRecords)
-
getArchiveCreateWhen
public java.util.Date getArchiveCreateWhen()
-
setArchiveCreateWhen
public void setArchiveCreateWhen(java.util.Date archiveCreateWhen)
-
getArchiveModWhen
public java.util.Date getArchiveModWhen()
-
setArchiveModWhen
public void setArchiveModWhen(java.util.Date archiveModWhen)
-
getMasterVersion
public int getMasterVersion()
-
setMasterVersion
public void setMasterVersion(int masterVersion)
-
getMasterEof
public long getMasterEof()
-
setMasterEof
public void setMasterEof(long masterEof)
-
isValidCrc
public boolean isValidCrc()
-
-