public class HeaderBlock
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.
http://www.nulib.com/library/FTN.e08002.htm| Constructor and Description |
|---|
HeaderBlock(LittleEndianByteInputStream bs)
Create the Header Block.
|
| Modifier and Type | Method and Description |
|---|---|
protected ThreadRecord |
findThreadRecord(ThreadKind tk)
Locate a ThreadRecord by it's ThreadKind.
|
long |
getAccess() |
java.util.Date |
getArchiveWhen() |
byte[] |
getAttribBytes() |
int |
getAttribCount() |
java.util.Date |
getCreateWhen() |
ThreadRecord |
getDataForkInputStream()
Get the data fork.
|
long |
getExtraType() |
java.lang.String |
getFilename()
Locate the filename and return it.
|
int |
getFileSysId() |
int |
getFileSysInfo() |
long |
getFileType() |
java.lang.String |
getFinalFilename()
Final element in the path, in those cases where a filename actually holds a path name
|
int |
getHeaderCrc() |
long |
getHeaderSize() |
java.util.Date |
getModWhen() |
byte[] |
getOptionListBytes() |
int |
getOptionSize() |
java.lang.String |
getRawFilename() |
ThreadRecord |
getResourceForkInputStream()
Get the resource fork.
|
int |
getStorageType() |
java.util.List<ThreadRecord> |
getThreadRecords() |
long |
getTotalThreads() |
int |
getVersionNumber() |
void |
readThreads(LittleEndianByteInputStream bs)
Read in all data threads.
|
void |
setAccess(long access) |
void |
setArchiveWhen(java.util.Date archiveWhen) |
void |
setAttribBytes(byte[] attribBytes) |
void |
setAttribCount(int attribCount) |
void |
setCreateWhen(java.util.Date createWhen) |
void |
setExtraType(long extraType) |
void |
setFilename(java.lang.String filename) |
void |
setFileSysId(int fileSysId) |
void |
setFileSysInfo(int fileSysInfo) |
void |
setFileType(long fileType) |
void |
setHeaderCrc(int headerCrc) |
void |
setModWhen(java.util.Date modWhen) |
void |
setOptionListBytes(byte[] optionListBytes) |
void |
setOptionSize(int optionSize) |
void |
setStorageType(int storageType) |
void |
setThreadRecords(java.util.List<ThreadRecord> threads) |
void |
setTotalThreads(long totalThreads) |
void |
setVersionNumber(int versionNumber) |
public HeaderBlock(LittleEndianByteInputStream bs) throws java.io.IOException
java.io.IOExceptionpublic void readThreads(LittleEndianByteInputStream bs) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getFilename()
public java.lang.String getFinalFilename()
public ThreadRecord getDataForkInputStream() throws java.io.IOException
java.io.IOExceptionpublic ThreadRecord getResourceForkInputStream() throws java.io.IOException
java.io.IOExceptionprotected ThreadRecord findThreadRecord(ThreadKind tk)
public int getHeaderCrc()
public void setHeaderCrc(int headerCrc)
public int getAttribCount()
public void setAttribCount(int attribCount)
public int getVersionNumber()
public void setVersionNumber(int versionNumber)
public long getTotalThreads()
public void setTotalThreads(long totalThreads)
public int getFileSysId()
public void setFileSysId(int fileSysId)
public int getFileSysInfo()
public void setFileSysInfo(int fileSysInfo)
public long getAccess()
public void setAccess(long access)
public long getFileType()
public void setFileType(long fileType)
public long getExtraType()
public void setExtraType(long extraType)
public int getStorageType()
public void setStorageType(int storageType)
public java.util.Date getCreateWhen()
public void setCreateWhen(java.util.Date createWhen)
public java.util.Date getModWhen()
public void setModWhen(java.util.Date modWhen)
public java.util.Date getArchiveWhen()
public void setArchiveWhen(java.util.Date archiveWhen)
public int getOptionSize()
public void setOptionSize(int optionSize)
public byte[] getOptionListBytes()
public void setOptionListBytes(byte[] optionListBytes)
public byte[] getAttribBytes()
public void setAttribBytes(byte[] attribBytes)
public void setFilename(java.lang.String filename)
public java.lang.String getRawFilename()
public java.util.List<ThreadRecord> getThreadRecords()
public void setThreadRecords(java.util.List<ThreadRecord> threads)
public long getHeaderSize()